From c8406905790c612fa957c2073cde782933b3e412 Mon Sep 17 00:00:00 2001 From: Stan Ke <156306548@qq.com> Date: Wed, 21 Aug 2024 10:38:20 +0800 Subject: [PATCH] deploy --- .github/workflows/page.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/page.yml b/.github/workflows/page.yml index d342176..761f804 100644 --- a/.github/workflows/page.yml +++ b/.github/workflows/page.yml @@ -4,6 +4,10 @@ on: push: branches: - main # default branch + - master + pull_request: + branches: + - main jobs: build: @@ -26,23 +30,22 @@ jobs: uses: actions/upload-pages-artifact@v3 with: path: ./public + deploy: + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: https://stan370.github.io/ + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 # Temporarily skip Docker and Kubernetes deployment steps # TOD: dockerfile - # deploy: - # needs: build - # permissions: - # pages: write - # id-token: write - # environment: - # name: github-pages - # url: https://stan370.github.io/ - # runs-on: ubuntu-latest - # steps: - # - name: Deploy to GitHub Pages - # id: deployment - # uses: actions/deploy-pages@v2 - # docker: # runs-on: ubuntu-latest # needs: build