From 4bf4b2c29be703452645b0f587bb6e5c33673539 Mon Sep 17 00:00:00 2001 From: as782 <82266782+as782@users.noreply.github.com> Date: Sun, 26 May 2024 11:52:45 +0800 Subject: [PATCH] Create page.yml p1 --- .github/workflows/page.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/page.yml diff --git a/.github/workflows/page.yml b/.github/workflows/page.yml new file mode 100644 index 0000000..ac2adfc --- /dev/null +++ b/.github/workflows/page.yml @@ -0,0 +1,29 @@ +name: github pages + +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8.6.2 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'pnpm' + - run: pnpm install --frozen-lockfile + - run: pnpm build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist