From 68880eeaf12c5c802f51442130bbac2c3be3351a Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Sun, 18 Apr 2021 11:36:53 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy.yml 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