Skip to content

Setup release workflow #6

Setup release workflow

Setup release workflow #6

Workflow file for this run

name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
# Push events to any matching semantic version tag.
# For example, 1.10.1 or 2.0.0 or 3.0.0-alpha.
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Wait for tests to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
running-workflow-name: "Build"
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 20
- name: Build changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: "release-changelog-builder-config.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
body: ${{steps.changelog.outputs.changelog}}
draft: false
prerelease: false