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: [created] | |
name: Upload Artifact Bundle to Release | |
env: | |
DEVELOPER_DIR: "/Applications/Xcode_16.0.app/Contents/Developer" | |
SCIPIO_DEVELOPMENT: 1 | |
jobs: | |
release: | |
name: Build and Upload Artifact Bundle | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Resolve Dependencies | |
run: | | |
swift package resolve | |
- name: Build Binary | |
run: | | |
swift build --disable-sandbox -c release --arch arm64 | |
swift build --disable-sandbox -c release --arch x86_64 | |
- name: Get Current Tag | |
run: echo "TAG_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Make Artifact Bundle | |
run: | | |
swift package --allow-writing-to-package-directory generate-artifact-bundle \ | |
--package-version ${{ env.TAG_NAME }} \ | |
--executable-name scipio \ | |
--build-config release \ | |
--build-folder .build | |
- name: Upload Artifact Bundle to Release | |
run: | | |
gh release upload ${{ env.TAG_NAME }} ./scipio.artifactbundle.zip | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |