pure/.github/workflows/deploy.yml

35 lines
843 B
YAML
Raw Normal View History

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:
node-version: 14.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:
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}"
npm run prepare
cp -rf ./build/ ./site/static/css/pure/
cd site
npm install
2021-07-06 16:26:23 +00:00
npm run deploy