Skip to content

Commit

Permalink
Try fixing how tauri release is triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
SupernaviX committed Aug 26, 2024
1 parent a0f67a2 commit 12a79cc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,12 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive

custom-release_tauri:
needs:
- plan
- announce
uses: ./.github/workflows/release_tauri.yml
with:
plan: ${{ needs.plan.outputs.val }}
secrets: inherit
18 changes: 14 additions & 4 deletions .github/workflows/release_tauri.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: 'Release Tauri'

on:
workflow_run:
workflows: ["Release"]
types: [completed]
workflow_call:
inputs:
plan:
required: true
type: string

# This workflow will trigger after we have cut a release, and add the tauri binaries to it

Expand All @@ -25,11 +27,19 @@ jobs:
args: '--target x86_64-pc-windows-msvc'

runs-on: ${{ matrix.platform }}
env:
PLAN: ${{ inputs.plan }}
steps:
- name: enable windows longpaths
run: |
git config --global core.longpaths true
- id: release-tag
name: extract release tag
run: |
TAG=$(echo "$PLAN" | jq '.announcement_version')
echo "tag=$TAG" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4

- name: setup node
Expand Down Expand Up @@ -58,5 +68,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ github.event.release.id }}
tagName: ${{ steps.release-tag.outputs.tag }}
args: ${{ matrix.args }}
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-
pr-run-mode = "plan"
# Extra setup steps to make tauri happy
github-build-setup = "../setup/build-setup.yml"
# Publish tauri packages after everything else
post-announce-jobs = ["./release_tauri"]

[workspace.metadata.dist.github-custom-runners]
x86_64-unknown-linux-gnu = "ubuntu-22.04"
Expand Down

0 comments on commit 12a79cc

Please sign in to comment.