blob: 1f866112230da4117697fdb49b363059d7730fd0 [file] [log] [blame] [edit]
name: Push CI
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- uses: actions/setup-node@v2-beta
with:
node-version: "15.x"
- run: npm ci
- run: |
npm test
sed -i '/out\//d' .gitignore
sed -i '/out-wpt\//d' .gitignore
- uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: .
CLEAN: true