v0.3.21 #34
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
| # This script is provided by github.com/bool64/dev. | |
| # This script uploads application binaries as GitHub release assets. | |
| name: release-assets | |
| on: | |
| release: | |
| types: | |
| - created | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GO_VERSION: stable | |
| LINUX_AMD64_BUILD_OPTIONS: '-tags cgo_zstd' | |
| GOAMD64: v3 | |
| jobs: | |
| build: | |
| name: Upload Release Assets | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build artifacts | |
| run: | | |
| make release-assets docker-build-static | |
| - name: Upload linux_amd64.tar.gz | |
| if: hashFiles('linux_amd64.tar.gz') != '' | |
| uses: actions/upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./linux_amd64.tar.gz | |
| asset_name: linux_amd64.tar.gz | |
| asset_content_type: application/tar+gzip | |
| - name: Upload linux_amd64_dbg.tar.gz | |
| if: hashFiles('linux_amd64_dbg.tar.gz') != '' | |
| uses: actions/upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./linux_amd64_dbg.tar.gz | |
| asset_name: linux_amd64_dbg.tar.gz | |
| asset_content_type: application/tar+gzip | |
| - name: Upload linux_amd64_static.tar.gz | |
| if: hashFiles('linux_amd64_static.tar.gz') != '' | |
| uses: actions/upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./linux_amd64_static.tar.gz | |
| asset_name: linux_amd64_static.tar.gz | |
| asset_content_type: application/tar+gzip | |
| - name: Upload linux_arm64.tar.gz | |
| if: hashFiles('linux_arm64.tar.gz') != '' | |
| uses: actions/upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./linux_arm64.tar.gz | |
| asset_name: linux_arm64.tar.gz | |
| asset_content_type: application/tar+gzip | |
| - name: Upload linux_arm.tar.gz | |
| if: hashFiles('linux_arm.tar.gz') != '' | |
| uses: actions/upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./linux_arm.tar.gz | |
| asset_name: linux_arm.tar.gz | |
| asset_content_type: application/tar+gzip | |
| - name: Upload darwin_amd64.tar.gz | |
| if: hashFiles('darwin_amd64.tar.gz') != '' | |
| uses: actions/upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./darwin_amd64.tar.gz | |
| asset_name: darwin_amd64.tar.gz | |
| asset_content_type: application/tar+gzip | |
| - name: Upload darwin_arm64.tar.gz | |
| if: hashFiles('darwin_arm64.tar.gz') != '' | |
| uses: actions/upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./darwin_arm64.tar.gz | |
| asset_name: darwin_arm64.tar.gz | |
| asset_content_type: application/tar+gzip | |
| - name: Upload windows_amd64.zip | |
| if: hashFiles('windows_amd64.zip') != '' | |
| uses: actions/upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./windows_amd64.zip | |
| asset_name: windows_amd64.zip | |
| asset_content_type: application/zip | |