mirror of
https://github.com/pure-css/pure.git
synced 2024-11-24 10:44:21 +00:00
27 lines
610 B
YAML
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 }}
|