5th try to get binaries uploaded to release page #5
Workflow file for this run
This file contains 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: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
verify: | |
uses: ./.github/workflows/test.yml | |
with: | |
dmd_compiler_version: dmd-2.103.1 | |
build: | |
uses: ./.github/workflows/build.yml | |
with: | |
lcd_compiler_version: ldc-1.33.0 | |
needs: verify | |
release-upload: | |
name: Upload release binaries | |
needs: build | |
strategy: | |
matrix: | |
os: [windows, linux, macos] | |
include: | |
- os: windows | |
exe-name: gamma.windows-amd64.exe | |
rename: Rename-Item gamma.exe | |
- os: linux | |
exe-name: gamma.linux-amd64 | |
rename: mv ./gamma | |
- os: macos | |
exe-name: gamma.macos-amd64 | |
rename: mv ./gamma | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download binary from previous build job | |
uses: actions/download-artifact@v4 | |
with: | |
name: ${{ matrix.exe-name }} | |
- name: Give binary a unique name | |
run: ${{ matrix.rename }} ${{ matrix.exe-name }} | |
- name: Upload release binary | |
uses: AButler/[email protected] | |
with: | |
files: ${{ matrix.exe-name }} | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |