From 5c042dad73955a947b56929fc80d7b01d498ee97 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Thu, 2 Oct 2025 08:48:56 +0700 Subject: [PATCH] Revert "Remove GitHub Pages deployment from workflow" This reverts commit 976d4822a07131c61cf0ccb5ea7e5935b9dddf8d. --- .github/workflows/hugo.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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