Update dependencies #188
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: Deploy to github pages | |
on: | |
repository_dispatch: | |
types: deploy | |
push: | |
branches: | |
- master | |
jobs: | |
gh-pages-deploy: | |
name: Deploying to gh-pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Node.js for use with actions | |
uses: actions/[email protected] | |
with: | |
version: 14.x | |
- name: Checkout branch | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
npm ci | |
npm install pug-cli -g | |
- name: Build website | |
env: | |
BASE_URL: ${{ secrets.BASE_URL }} | |
NODE_ENV: ${{ secrets.NODE_ENV }} | |
run: | | |
npx webpack --mode production --env NODE_ENV=production | |
pug -O '{commit: "'$GITHUB_SHA'", basedir: "views/", env: {BASE_URL: "'$BASE_URL'"}}' views/index.pug --out public/ | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: public |