Skip to content

Commit

Permalink
Update main.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dbthreee authored Nov 2, 2024
1 parent 7f69d43 commit f25bbec
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,11 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive # 如果需要的话

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Cache Zola
uses: actions/cache@v4
with:
path: target
key: ${{ runner.OS }}-zola-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.OS }}-zola-
- name: Install Zola
run: cargo install zola # 指定你需要的版本
- name: Download and install Zola
run: |
wget https://github.com/getzola/zola/releases/download/v0.19.2/zola-v0.19.2-x86_64-unknown-linux-gnu.tar.gz
tar xvf zola-v0.19.2-x86_64-unknown-linux-gnu.tar.gz
sudo mv zola /usr/local/bin/
- name: Build with Zola
run: zola build
Expand Down

0 comments on commit f25bbec

Please sign in to comment.