Skip to content

Publish

Publish #56

Workflow file for this run

name: Publish
on:
release:
types:
- published
workflow_dispatch:
inputs:
tag_name:
description: "Tag name"
required: true
type: string
jobs:
build:
uses: ./.github/workflows/build.yml
with:
tag_name: ${{ inputs.tag_name || github.event.release.tag_name }}
should_upload_artifacts: true
publish:
name: Publish
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
path: artifacts
merge-multiple: true
- name: Upload assets to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Upload all files from the build job
for file in artifacts/*; do
gh release upload ${{ inputs.tag_name || github.event.release.tag_name }} $file --repo ${{ github.repository }}
done