-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.04 KB
/
gh-pages.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: github pages
on:
push:
branches:
- qgis_uc_2024_talk
pull_request:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install pandoc
run: |
#sudo apt update
#sudo apt install -y pandoc
#pandoc_git_tag="$(git ls-remote -q -t --refs https://github.com/jgm/pandoc.git | awk '/tags\/[0-9]/{sub("refs/tags/", ""); print $2 }' | awk '!/^$/' | sort -rV | head -n 1)"
pandoc_git_tag=3.1.3
curl -sLo- "https://github.com/jgm/pandoc/releases/download/${pandoc_git_tag}/pandoc-${pandoc_git_tag}-linux-amd64.tar.gz" | sudo tar xzf - --strip-components 2 -C /usr/local/bin --exclude="share"
pandoc --version
- name: Build
run: make
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/qgis_uc_2024_talk'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs