Skip to content

Commit

Permalink
add a gh-actions job to build and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzokuken authored and Ms2ger committed Nov 2, 2020
1 parent 85c2ad7 commit 5930868
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: use node.js v15.x
uses: actions/setup-node@v1
with:
node-version: 15.x
- run: npm ci
- run: npm run build
- uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: out
CLEAN: true

0 comments on commit 5930868

Please sign in to comment.