Skip to content

Release binaries

Release binaries #19

name: Release binaries
on:
release:
types: [published]
workflow_dispatch:
jobs:
generate-binaries:
name: Call workflow to generate binaries
uses: ./.github/workflows/generate-binaries.yaml
release-binaries:
permissions: write-all
name: Release binaries
runs-on: ubuntu-latest
env:
# Environment variables
ARTIFACT_NAME: binaries
needs: generate-binaries
steps:
- name: Download binaries
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
# - name: Verify artifact download (Debugging)
# run: ls -R
- name: Archive binaries
uses: thedoctor0/zip-release@master
with:
filename: ${{ env.ARTIFACT_NAME }}.zip
# - name: Verify artifact archive (Debugging)
# run: ls -R
# - name: Get release URL
# id: get-release
# uses: bruceadams/get-release@v1.3.2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload binaries as release assets
uses: actions/upload-release-asset@v1
# uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
# upload_url: ${{ steps.get-release.outputs.upload_url }}
asset_path: ./${{ env.ARTIFACT_NAME }}.zip
asset_name: ${{ env.ARTIFACT_NAME }}.zip
asset_content_type: application/zip