Skip to content

Commit

Permalink
fix(CI): 🐛 修复release配置 (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
nongyehong authored Dec 18, 2024
1 parent 1ec6020 commit 6969a09
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
publish-tauri:
permissions:
Expand All @@ -30,16 +27,11 @@ jobs:

runs-on: ${{ matrix.platform }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@v4

# 安装 Node.js
- name: Setup Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@v4
with:
node-version: '22'

Expand All @@ -55,18 +47,18 @@ jobs:

# 安装 Rust
- name: install Rust stable
uses: dtolnay/rust-toolchain@1ff72ee08e3cb84d84adba594e0a297990fc1ed3 # stable
uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: Rust cache
uses: swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'

- name: Create release
uses: tauri-apps/tauri-action@2a8db2c169af2fdc695133781e27ecba52daea75 # v0.5.17
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 使用之前配置的私钥
Expand All @@ -79,4 +71,4 @@ jobs:
releaseBody: 'See the assets to download and install this version.'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
args: ${{ matrix.args }}

0 comments on commit 6969a09

Please sign in to comment.