When you want to release a new application, go to the Actions Tab in the GitHub UI and choose the Release
Action.
Then click Run workflow
.
This triggers the Release Action which automatically creates a Conventional Commit Release on GitHub. Afterwards the subsequent build actions are triggered via:
on:
workflow_run:
workflows: ["Release"]
types: [completed]
Additionally, if you want to upload release assets in these build workflows, you can use the cached build environment:
- name: Download build environment 📥
uses: dawidd6/[email protected]
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success
name: build-env
path: ${{ github.workspace }}
- name: Import environment ⛓
run: cat .build-env >> $GITHUB_ENV
- name: Upload release asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ env.upload_url }}
asset_path: ./dist/artifact1.txt
asset_name: artifact1.txt
asset_content_type: text/plain
All contributers are required to sign a contributor's license agreement to contribute to this repository. For further details, please contact [email protected]. Thank you! 🙂