Skip to content

Merge pull request #53 from K1nd4SUS/create-release-workflow #1

Merge pull request #53 from K1nd4SUS/create-release-workflow

Merge pull request #53 from K1nd4SUS/create-release-workflow #1

Workflow file for this run

name: release
on:
push:
branches:
- main
tags:
- '*'
jobs:
release-gh:
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download frontend build artifact
uses: dawidd6/action-download-artifact@v3
with:
workflow: web-frontend-build.yml
workflow_conclusion: success
name: cerbero-frontend
path: web/frontend/dist/
- name: Download backend build artifact
uses: dawidd6/action-download-artifact@v3
with:
workflow: web-backend-build.yml
workflow_conclusion: success
name: cerbero-backend
path: web/backend/dist/
- name: Download firewall build artifact
uses: dawidd6/action-download-artifact@v3
with:
workflow: firewall-build.yml
workflow_conclusion: success
name: cerbero
path: firewall/
- name: Release on GitHub
run: |
gh release create \
$(git describe --tags --abbrev=0) -t $(git describe --tags --abbrev=0) \
--target main --generate-notes \
web/frontend/dist/ \
web/backend/dist/ \
firewall/cerbero3
env:
GITHUB_TOKEN: ${{ secrets.CUSTOM_TOKEN }} # A custom token is needed to chain workflows after this one (e.g. docker builds)