v0.1.0 #2
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
on: | |
release: | |
types: [published] | |
name: Build Release Artifacts | |
jobs: | |
build-macos: | |
name: Build macOS Executable | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build macOS binary | |
run: scripts/build-macos.sh | |
- name: 'Upload macOS Build Artifact' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: giveawaypicker-macos | |
path: builds/giveawaypicker-macos | |
upload: | |
name: Upload release artifacts | |
runs-on: ubuntu-latest | |
needs: [build-macos] | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
path: . | |
- name: List downloaded files | |
run: ls -R | |
- name: Upload to Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag_name: ${{ github.event.release.name }} | |
files: ./*/* | |
fail_on_unmatched_files: true |