diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 0da79a5..20cead0 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -98,6 +98,16 @@ jobs: with: path: ./public deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + deploy-cloudflare: runs-on: ubuntu-latest name: Deploy to CloudFlare Pages needs: build @@ -121,7 +131,7 @@ jobs: submit-indexnow: runs-on: ubuntu-latest name: Check and submit to IndexNow - needs: deploy + needs: deploy-cloudflare steps: - name: indexnow-action uses: bojieyang/indexnow-action@v2