-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9bd814
commit 8c3b875
Showing
3 changed files
with
47 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: 'Build for Mac' | ||
inputs: | ||
production-release: | ||
description: 'Production release?' | ||
required: true | ||
release-version: | ||
description: 'The release version' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
# TODO: set up signing certs here when releasing to production | ||
|
||
- name: Get artifact name | ||
id: set-env | ||
run: | | ||
echo "artifact_name=algokit-explorer-mac-${{ runner.arch }}" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Bump version in tauri.conf.json | ||
if: ${{ inputs.release-version != '' }} | ||
run: | | ||
sed -i '' "s/\"version\": \"0.0.0\"/\"version\": \"${{ inputs.release-version }}\"/g" "src-tauri/tauri.conf.json" | ||
shell: bash | ||
|
||
- name: Build tauri app | ||
run: | | ||
npm run tauri build | ||
shell: bash | ||
|
||
- name: Upload binary as artifact | ||
id: upload-artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
if-no-files-found: error | ||
name: ${{ steps.set-env.outputs.artifact_name }} | ||
path: src-tauri/target/release/bundle/dmg/algokit-explorer_*.dmg |
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
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