2020-02-07 16:10:26 +00:00
|
|
|
name: Deploy to GitHub Pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: "Setup NodeJS"
|
2020-02-07 16:13:03 +00:00
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '12.x'
|
2020-02-07 16:10:26 +00:00
|
|
|
|
|
|
|
- name: "Install NPM dependencies"
|
2020-02-07 16:13:03 +00:00
|
|
|
run: npm install
|
2020-02-07 16:10:26 +00:00
|
|
|
|
2020-02-09 18:32:31 +00:00
|
|
|
- name: "Install CLI tools"
|
|
|
|
run: "npm install --global @gridsome/cli purgecss"
|
2020-02-07 16:10:26 +00:00
|
|
|
|
|
|
|
- name: "Build"
|
2020-02-07 16:13:03 +00:00
|
|
|
run: npm run build
|
2020-02-07 16:10:26 +00:00
|
|
|
|
2020-02-09 18:32:31 +00:00
|
|
|
- name: "PurgeCSS pass"
|
|
|
|
run: purgecss --config purgecss.config.js --output dist/assets/css/
|
|
|
|
|
2020-02-07 16:13:03 +00:00
|
|
|
- name: "Deploy"
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
|
|
publish_dir: ./dist
|
|
|
|
publish_branch: master
|
|
|
|
external_repository: Ryujinx/ryujinx.github.io
|
2020-02-09 16:43:54 +00:00
|
|
|
user_name: GitHub Action
|
|
|
|
user_email: action@github.com
|
|
|
|
force_orphan: true
|