Skip to content

Commit f507fb1

Browse files
authored
Update deploy.yml
1 parent f8db5ef commit f507fb1

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches: ["main"]
55

6+
workflow_dispatch:
7+
68
permissions:
79
contents: read
810
pages: write
@@ -20,24 +22,24 @@ defaults:
2022
jobs:
2123
build:
2224
runs-on: ubuntu-latest
25+
env:
26+
Zola_VERSION: 0.20.0
2327
steps:
2428
- name: Install Zola
25-
uses: taiki-e/install-action@v2
26-
with:
27-
tool: zola@0.19.1
29+
run: |
30+
wget -O "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" \
31+
&& sudo tar xzf - -C /usr/local/bin
2832
- name: Checkout
29-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3034
- name: Setup Pages
31-
id: pages
32-
uses: actions/configure-pages@v3
35+
uses: actions/configure-pages@v5
3336
- name: Build with Zola
34-
run: |
35-
zola build
37+
run: zola build
3638
- name: Upload artifact
37-
uses: actions/upload-pages-artifact@v1
39+
uses: actions/upload-pages-artifact@v4
3840
with:
3941
path: ./public
40-
42+
4143
deploy:
4244
environment:
4345
name: github-pages
@@ -47,4 +49,4 @@ jobs:
4749
steps:
4850
- name: Deploy to GitHub Pages
4951
id: deployment
50-
uses: actions/deploy-pages@v2
52+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)