Publish #48
Workflow file for this run
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: 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 }} | |
| publish: | |
| name: Publish | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - name: Upload assets to release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| # Upload all .gz files | |
| find artifacts -name "function-runner-*-${{ inputs.tag_name || github.event.release.tag_name }}.gz" -type f | while read file; do | |
| echo "Uploading $file" | |
| #gh release upload ${{ inputs.tag_name || github.event.release.tag_name }} "$file" | |
| done | |
| # Upload all .gz.sha256 files | |
| find artifacts -name "function-runner-*-${{ inputs.tag_name || github.event.release.tag_name }}.gz.sha256" -type f | while read file; do | |
| echo "Uploading $file" | |
| #gh release upload ${{ inputs.tag_name || github.event.release.tag_name }} "$file" | |
| done |