Skip to content

Publish

Publish #47

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 }}
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
for file in artifacts/function-runner-*-${{ inputs.tag_name || github.event.release.tag_name }}.gz; do
if [ -f "$file" ]; then
echo "Uploading $file"
#gh release upload ${{ inputs.tag_name || github.event.release.tag_name }} "$file"
fi
done
# Upload all .gz.sha256 files
for file in artifacts/function-runner-*-${{ inputs.tag_name || github.event.release.tag_name }}.gz.sha256; do
if [ -f "$file" ]; then
echo "Uploading $file"
#gh release upload ${{ inputs.tag_name || github.event.release.tag_name }} "$file"
fi
done