10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-04 02:16:11 +02:00
QUESTDB_website/.github/workflows/gh-pages.yml

41 lines
742 B
YAML
Raw Normal View History

2020-11-20 09:19:04 +01:00
name: github pages
on:
push:
branches:
2020-11-20 09:44:52 +01:00
- master
- site
2020-11-20 09:19:04 +01:00
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: refresh apt
2020-11-20 09:54:19 +01:00
run: sudo apt update
2020-11-20 09:19:04 +01:00
- name: install dependencies
2020-11-20 09:54:19 +01:00
run: sudo apt install snap
2020-11-20 09:53:08 +01:00
- name: install hugo
2020-11-20 09:54:19 +01:00
run: sudo snap install hugo --channel=extended
2020-11-20 09:19:04 +01:00
- name: install theme
run: git submodule update --init --recursive
2020-11-25 00:17:52 +01:00
- name: patch config
run: git apply .github/workflows/config.patch
2020-11-20 09:19:04 +01:00
- name: make
run: make
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
2020-11-20 09:44:52 +01:00