diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..4a66c897 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: deploy + +on: + push: + branches: [master] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js v14.x + uses: actions/setup-node@v1 + with: + node-version: '14.x' + + - name: Install and Build + run: | + npm install + npm run build + + - name: Deploy to github pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.PPTIST }} + commit_message: deploy to github pages + publish_dir: ./dist \ No newline at end of file