-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (34 loc) · 950 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
on:
push:
branches:
- root
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Zola
run: |
mkdir -p bin/
curl -Lo zola.tar.gz https://github.com/getzola/zola/releases/download/v0.19.2/zola-v0.19.2-x86_64-unknown-linux-gnu.tar.gz
tar xvf zola.tar.gz -C bin
echo "$(pwd)/bin" >> $GITHUB_PATH
rm zola.tar.gz
echo $PATH
- name: Build site
run: |
zola build
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: public
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
env:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}