get-involved/.github/workflows/hugo.yml

42 строки
914 B
YAML
Исходник Обычный вид История

2021-01-20 11:48:43 +03:00
name: Hugo
2021-01-20 06:58:12 +03:00
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
2021-01-20 11:48:43 +03:00
2021-01-20 06:58:12 +03:00
build:
2021-01-20 11:48:43 +03:00
name: Build
2021-01-20 06:58:12 +03:00
runs-on: ubuntu-latest
steps:
2021-01-20 11:48:43 +03:00
- uses: actions/checkout@master
- name: Checkout submodules
uses: textbook/git-checkout-submodule-action@master
- name: install pandoc
run: |
wget https://github.com/jgm/pandoc/releases/download/2.10/pandoc-2.10-1-amd64.deb
sudo dpkg -i pandoc-2.10-1-amd64.deb
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.71.1'
extended: true
- name: Build
run: |
npm install -D --save autoprefixer
npm install -D --save postcss-cli
hugo
2021-01-20 06:58:12 +03:00
2021-01-20 11:48:43 +03:00
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public