Skip to content

Commit

Permalink
Automatically upload the release binary (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed authored Jan 21, 2024
1 parent 4902d2d commit db30891
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/main.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Build CLI

name: Publish
on:
push:
branches:
- main
tags:
- '*'

jobs:
build-release-cli:
Expand All @@ -16,8 +15,18 @@ jobs:
run: sudo xcode-select --switch /Applications/Xcode_15.0.1.app/Contents/Developer
- name: Build SafeDITool
run: xcrun swift build -c release --product SafeDITool
- name: Upload SafeDITool
- name: Give SafeDITool executable permissions
run: chmod +x .build/*/release/SafeDITool
- name: Upload SafeDITool artifact
uses: actions/upload-artifact@v4
with:
name: SafeDITool
path: .build/*/release/SafeDITool
- name: Upload SafeDITool as release binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.RELEASE_UPLOADER }}
file: .build/*/release/SafeDITool
tag: ${{ github.ref }}
overwrite: false
file_glob: true

0 comments on commit db30891

Please sign in to comment.