Update PLI certificate #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Website CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.85.0' | |
- uses: bahmutov/npm-install@v1 | |
- uses: c-hive/gha-npm-cache@v1 | |
- name: Install NPM packages | |
run: | | |
npm install | |
npm install gulp-cli | |
node node_modules/gulp/bin/gulp build | |
- name: Build | |
run: hugo --minify | |
- name: HTMLTest | |
if: false # TODO | |
run: | | |
curl -Lk https://github.com/wjdp/htmltest/releases/download/v0.4.1/htmltest-linux -o ~/htmltest && chmod +x "$_" | |
~/htmltest | |
- name: Deploy | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |