From e1a3540579d58d89456402f663c6be850da314be Mon Sep 17 00:00:00 2001 From: FangQi Date: Fri, 17 May 2024 17:10:53 +0800 Subject: [PATCH] update --- .github/workflows/main.yml | 44 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b1d92d5..8c963e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,25 +1,25 @@ name: GitHub Actions Build and Deploy Demo on: - push: - branches: - - master + push: + branches: + - master jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - name: Checkout - uses: actions/checkout@v4 - - name: Install and Build - run: | - yarn install - yarn run-script build - - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4 - with: - ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} - BRANCH: gh-pages - FOLDER: build + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Checkout + uses: actions/checkout@v4 + - name: Install and Build + run: | + npm install + npm run-script build + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + BRANCH: gh-pages + FOLDER: build