Skip to content

Commit 988c893

Browse files
hotfix(ci): fix release workflow
1 parent 1dd4f7b commit 988c893

1 file changed

Lines changed: 26 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,19 @@ jobs:
3030
OUTPUT: CHANGES.md
3131
GITHUB_REPO: ${{ github.repository }}
3232

33-
# use release body in the same job
34-
- name: Upload the binary releases
35-
uses: svenstaro/upload-release-action@v2
36-
with:
37-
file: binary_release.zip
38-
repo_token: ${{ secrets.GITHUB_TOKEN }}
39-
tag: ${{ github.ref }}
40-
body: ${{ steps.git-cliff.outputs.content }}
41-
4233
# use release body in another job
43-
upload:
44-
name: Upload the release
45-
needs: changelog
46-
runs-on: ubuntu-latest
47-
steps:
48-
- name: Upload the binary releases
49-
uses: svenstaro/upload-release-action@v2
50-
with:
51-
file: binary_release.zip
52-
repo_token: ${{ secrets.GITHUB_TOKEN }}
53-
tag: ${{ github.ref }}
54-
body: ${{ needs.changelog.outputs.release_body }}
34+
# upload:
35+
# name: Upload the release
36+
# needs: changelog
37+
# runs-on: ubuntu-latest
38+
# steps:
39+
# - name: Upload the binary releases
40+
# uses: svenstaro/upload-release-action@v2
41+
# with:
42+
# file: binary_release.zip
43+
# repo_token: ${{ secrets.GITHUB_TOKEN }}
44+
# tag: ${{ github.ref }}
45+
# body: ${{ needs.changelog.outputs.release_body }}
5546
publish-app:
5647
permissions:
5748
contents: write
@@ -90,6 +81,17 @@ jobs:
9081
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
9182
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
9283
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
84+
- name: Restore Cargo dependencies
85+
uses: actions/cache@v3
86+
with:
87+
path: |
88+
~/src-tauri/.cargo/bin/
89+
~/src-tauri/.cargo/registry/index/
90+
~/src-tauri/.cargo/registry/cache/
91+
~/src-tauri/.cargo/git/db/
92+
~/src-tauri/target/
93+
key: ${{ runner.os }}-cargo-${{ hashFiles('src-tauri/Cargo.lock') }}
94+
restore-keys: ${{ runner.os }}-cargo-
9395

9496
- name: install Bun
9597
run: curl -fsSL https://bun.sh/install | bash
@@ -100,10 +102,13 @@ jobs:
100102
- uses: tauri-apps/tauri-action@v0
101103
env:
102104
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
106+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ""
103107
with:
104108
tagName: content-manager-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
105109
releaseName: "Content Manager v__VERSION__"
106110
releaseBody: "See the assets to download this version and install."
107111
releaseDraft: true
108112
prerelease: false
109113
args: ${{ matrix.args }}
114+
body: ${{ needs.changelog.outputs.release_body }}

0 commit comments

Comments
 (0)