Fix CI. #2
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
concurrency: | |
group: "release-${{ github.head_ref || github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
ci: | |
uses: ./.github/workflows/ci.yaml | |
tag_release_artifacts: | |
# This only runs if this workflow is initiated via a tag-push with pattern 'v*' | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
name: collect v-tag release artifacts | |
runs-on: ubuntu-latest | |
needs: | |
- ci | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
# README - we later need the download_url output of the upload step | |
- name: Upload README to release | |
uses: svenstaro/upload-release-action@v2 | |
id: upload_readme | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: README.md | |
tag: ${{ github.ref }} | |
- name: Gets latest created release info | |
id: latest_release_info | |
uses: joutvhu/get-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Collect all artifacts | |
uses: anotherdaniel/[email protected] | |
id: quevee_manifest | |
with: | |
release_url: ${{ steps.latest_release_info.outputs.html_url }} | |
artifacts_readme: ${{ steps.upload_readme.outputs.browser_download_url }} | |
- name: Upload manifest to release | |
uses: svenstaro/upload-release-action@v2 | |
id: upload_quality_manifest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ steps.quevee_manifest.outputs.manifest_file }} | |
tag: ${{ github.ref }} |