From 40069af921d008eab709182f0c60fe4814eb693f Mon Sep 17 00:00:00 2001 From: Bibo Hao Date: Tue, 13 Feb 2024 02:50:53 +0800 Subject: [PATCH] debug gh-pages deploy --- .github/workflows/deploy-docusaurus.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docusaurus.yml b/.github/workflows/deploy-docusaurus.yml index 674d9a8..099ec46 100644 --- a/.github/workflows/deploy-docusaurus.yml +++ b/.github/workflows/deploy-docusaurus.yml @@ -6,7 +6,7 @@ on: - main # default branch jobs: - build-and-deploy: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -30,6 +30,19 @@ jobs: with: # 👇 Specify build output path path: QPod/build + deploy: + needs: build + + permissions: # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + environment: # Deploy to the github-pages environment + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + steps: - name: Deploy to GitHub Pages - uses: actions/deploy-pages@v2 id: deployment + uses: actions/deploy-pages@v4