Skip to content

Commit

Permalink
Merge pull request #67 from cloudnautique/main
Browse files Browse the repository at this point in the history
fix yaml files for releasing
  • Loading branch information
cloudnautique authored Feb 16, 2024
2 parents 63c64e5 + b4b6585 commit d3ba430
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:

- name: Rust setup
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin,x86_64-apple-darwin

- name: Rust Cache
uses: swatinem/rust-cache@v2
Expand All @@ -71,3 +73,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: "./tauri"
args: "--target universal-apple-darwin"
11 changes: 7 additions & 4 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:

- name: Rust setup
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin,x86_64-apple-darwin

- name: Rust Cache
uses: swatinem/rust-cache@v2
Expand Down Expand Up @@ -74,12 +76,13 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const tag = process.env.TAG;
const release = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: process.env.TAG
tag: tag
});
echo "RELEASE_ID=${release.data.id}" >> $GITHUB_ENV
core.setOutput('release_id', release.data.id);
- name: Build the app
uses: tauri-apps/tauri-action@v0
Expand All @@ -95,6 +98,6 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
with:
releaseId: ${process.env.RELEASE_ID}
args: --target universal-apple-darwin
releaseId: ${{ steps.get_release_id.outputs.release_id }}
args: "--target universal-apple-darwin"
projectPath: ./tauri

0 comments on commit d3ba430

Please sign in to comment.