-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.08 KB
/
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
43
44
name: Zola on GitHub Pages
on:
push:
branches:
- main
jobs:
build:
name: Publish site
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and Deploy
uses: shalzz/[email protected]
env:
BUILD_ONLY: true
- name: Move Documentation
run: |
sudo rm -R public/docs/developer/libical
sudo mv public/apidocs public/docs/developer/libical
sudo rm -R public/docs/developer/libical-glib
sudo mv public/libical-glib public/docs/developer/libical-glib
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
# upload entire directory
path: 'public'
deploy:
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Deploy artifact
id: deployment
uses: actions/deploy-pages@v4