Skip to content

Commit

Permalink
Merge pull request #126 from giginet/fix-release-workflow
Browse files Browse the repository at this point in the history
Fix release workflow
  • Loading branch information
giginet authored May 29, 2024
2 parents 90f3461 + 6bf73f0 commit 7290210
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ on:
types: [created]

name: Upload Artifact Bundle to Release
env:
env:
DEVELOPER_DIR: "/Applications/Xcode_15.3.app/Contents/Developer"
SCIPIO_DEVELOPMENT: 1

jobs:
Expand All @@ -12,6 +13,9 @@ jobs:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Resolve Dependencies
run: |
swift package resolve
- name: Build Binary
run: |
# Scipio can't build for x86_64 on Apple Silicon because it uses build tools plugin
Expand All @@ -20,14 +24,13 @@ jobs:
run: echo "TAG_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Make Artifact Bundle
run: |
swift package plugin --allow-writing-to-directory . generate-artifact-bundle \
--package-version ${{ env.TAG_NAME }} \
swift package --allow-writing-to-package-directory generate-artifact-bundle \
--package-version ${{ env.TAG_NAME }} \
--executable-name scipio \
--build-config release \
--build-folder .build
- uses: Shopify/upload-to-release@v2.0.0
with:
name: scipio.artifactbundle.zip
path: ./scipio.artifactbundle.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
content-type: application/zip
- name: Upload Artifact Bundle to Release
run: |
gh release upload ${{ env.TAG_NAME }} ./scipio.artifactbundle.zip
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7290210

Please sign in to comment.