From ed2f0d93cb676633c86ab88df9da4fa4787848d9 Mon Sep 17 00:00:00 2001 From: zuramai Date: Mon, 13 Jun 2022 07:26:01 +0700 Subject: [PATCH] ci: add auto-deploy to gh-pages on push --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..693d4f4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ + +name: deploy demo to gh-pages + +on: + push: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + + - name: Install and Build 🔧 + run: | + npm install + npm run dist + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4.2.5 + with: + branch: gh-pages # The branch the action should deploy to. + folder: ./pages # The folder the action should deploy. + commit-message: "update: stisla demo" + + \ No newline at end of file