2021-07-04 16:54:22 +00:00
|
|
|
name: Deploy
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
2021-07-04 16:55:08 +00:00
|
|
|
deploy:
|
2021-07-04 16:54:22 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2024-10-07 17:40:18 +00:00
|
|
|
node-version: 20.x
|
2021-07-06 16:26:23 +00:00
|
|
|
- uses: webfactory/ssh-agent@v0.5.0
|
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
|
|
|
|
- name: Release to GitHub Pages
|
2021-07-04 16:57:47 +00:00
|
|
|
env:
|
2021-08-27 19:51:01 +00:00
|
|
|
DEPLOYMENT_BRANCH: master
|
2021-07-04 16:57:47 +00:00
|
|
|
GH_EMAIL: ${{ secrets.GH_EMAIL }}
|
|
|
|
GH_NAME: ${{ secrets.GH_NAME }}
|
2021-07-06 16:07:44 +00:00
|
|
|
GIT_USER: ${{ secrets.GH_NAME }}
|
2021-07-06 16:26:23 +00:00
|
|
|
USE_SSH: true
|
|
|
|
run: |
|
|
|
|
npm ci
|
2021-07-06 16:34:03 +00:00
|
|
|
git config --global user.name "${GH_NAME}"
|
|
|
|
git config --global user.email "${GH_EMAIL}"
|
|
|
|
cd site
|
|
|
|
npm install
|
2021-07-06 16:26:23 +00:00
|
|
|
npm run deploy
|