pure/.github/workflows/deploy.yml
2021-07-04 10:18:36 -07:00

27 lines
610 B
YAML

name: Deploy
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
- run: npm ci
- run: npm run lint
- run: npm test
- run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/pure-css/pure-css.github.io.git
npm run deploy
env:
GH_EMAIL: ${{ secrets.GH_EMAIL }}
GH_NAME: ${{ secrets.GH_NAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}