-
-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (35 loc) · 948 Bytes
/
main.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
38
39
40
41
42
name: Build
on:
push:
branches:
- main
jobs:
deploy:
name: Build and deploy the site
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Check out the repository
env:
REPOSITORY: ${{ github.repository }}
run: |
ls -la
git clone "https://github.com/$REPOSITORY" .
- name: Download Zola
run: |
version='v0.18.0'
archive="zola-${version}-x86_64-unknown-linux-gnu.tar.gz"
curl -L "https://github.com/getzola/zola/releases/download/${version}/${archive}" -o "$archive"
tar xf "$archive"
- name: Build the site
run: |
./zola build
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: public
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4