Individually specify artifact names #4
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
name: 'Build 3DS-RPC' | |
on: [push, pull_request, release] | |
jobs: | |
build: | |
name: 'Build 3DS-RPC' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['windows-latest', 'macos-latest'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
# Windows Build | |
- name: "Build" | |
if: matrix.os == 'windows-latest' | |
run: cd scripts && ./build.bat | |
# macOS Build | |
- name: "Build" | |
if: matrix.os == 'macos-latest' | |
run: | | |
./scripts/build.sh && | |
cd ./dist && | |
zip -yr "3DS-RPC Mac.zip" 3DS-RPC.app/ | |
# For normal commits, upload the created artifact. | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: 3DS-RPC.exe | |
path: dist/3DS-RPC.exe | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: '3DS-RPC Mac.zip' | |
path: 'dist/3DS-RPC Mac.zip' | |
# If this is a release, additionally attach | |
# the created applications to the release. | |
- name: "Upload Release Build" | |
if: github.ref_type == 'tag' | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: dist/3DS-RPC* |