Skip to content

Commit

Permalink
移除Pnpm缓存设置
Browse files Browse the repository at this point in the history
  • Loading branch information
Mujio-killer committed Dec 17, 2023
1 parent 4420bba commit 7691a3a
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: test_release
# 触发条件
on:
# 手动触发
# 手动触发
workflow_dispatch:
push:
# 匹配特定标签 (refs/tags)
tags:
- 'v*' # 推送事件匹配 v*, 例如 v1.0,v20.15.10 等来触发工作流
# 具体任务
jobs:
# 任务名称
# 任务名称
create-release:
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
platform: [ macos-latest, ubuntu-latest, windows-latest ]

runs-on: ${{ matrix.platform }}
steps:
Expand Down Expand Up @@ -72,21 +72,6 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
# 获取 pnpm 缓存路径
- name: Get pnpm cache directory path
id: pnpm-cache-dir-path
run: echo "::set-output name=dir::$(pnpm config get cacheFolder)"

# 使用 pnpm 缓存
- name: pnpm cache
uses: actions/cache@v2
id: pnpm-cache # use this to check for `cache-hit` (`steps.pnpm-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm.lock') }}
restore-keys: |
${{ runner.os }}-pnpm-
# 安装依赖执行构建,以及推送 github release
- name: Install app dependencies and build it
run: pnpm i && pnpm tauri build
Expand Down

0 comments on commit 7691a3a

Please sign in to comment.