Release process #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release process | |
on: | |
workflow_run: | |
workflows: ["Test CI"] | |
types: | |
- completed | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version number' | |
required: true | |
type: string | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run_other_workflows: | |
name: Run other workflows | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger Test CI workflow | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: 'Linting' | |
repo: ${{ github.repository }} | |
ref: 'master' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
deploy: | |
name: Publish | |
needs: [run_other_workflows] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Prepare release | |
run: | | |
echo "Preparing release ${{ github.event.inputs.version }}" | |
make release version=${{ github.event.inputs.version }} | |
- name: Commit prepare release changes | |
run: | | |
git config --local user.email " | |
git config --local user.name "github-actions[bot]" | |
git add . | |
git commit -m "Release ${{ github.event.inputs.version }}" | |
# - name: Tag, push and create associated new release with auto generated notes | |
# run: | | |
# git tag ${{ github.event.inputs.version }} | |
# git push origin HEAD --tags | |
# gh release create ${{ github.event.inputs.version }} --title "Release ${{ github.event.inputs.version }}" | |
# # env: | |
# # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# | |
# #- name: Make release | |
# uses: ncipollo/release-action@v1 | |
# with: | |
# tag: ${{ github.event.inputs.version }} | |
# name: Release ${{ github.event.inputs.version }} |