Skip to content

Commit

Permalink
Fix tauri windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
SupernaviX committed Aug 26, 2024
1 parent fae6afc commit 0e906a6
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/release_tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,22 @@ on:
# This workflow will trigger after we have cut a release, and add the tauri binaries to it

jobs:
plan:
runs-on: "ubuntu-20.04"
outputs:
tag: ${{ steps.extract-tag.outputs.tag }}
env:
PLAN: ${{ inputs.plan }}
steps:
- id: extract-tag
name: extract release tag
run: |
TAG=$(echo "$PLAN" | jq -r '.announcement_tag')
echo "tag=$TAG" >> $GITHUB_OUTPUT
publish-tauri:
needs:
- plan
permissions:
contents: write
strategy:
Expand All @@ -27,19 +42,11 @@ 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_tag')
echo "tag=$TAG" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4

- name: setup node
Expand Down Expand Up @@ -68,6 +75,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseName: ${{ steps.release-tag.outputs.tag }}
tagName: ${{ steps.release-tag.outputs.tag }}
releaseName: ${{ needs.plan.outputs.tag }}
tagName: ${{ needs.plan.outputs.tag }}
args: ${{ matrix.args }}

0 comments on commit 0e906a6

Please sign in to comment.