From 7ab4f1d733c3d3c0ba1bd5aee7e3adf4044a7fbd Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Fri, 20 Feb 2026 10:29:25 +0700 Subject: [PATCH] Create deploy-pages.yml --- .github/workflows/deploy-pages.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/deploy-pages.yml diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml new file mode 100644 index 0000000..42a323e --- /dev/null +++ b/.github/workflows/deploy-pages.yml @@ -0,0 +1,36 @@ +name: Deploy to GitHub Pages + +on: + workflow_run: + workflows: ["RenderCV"] + types: + - completed + branches: + - main + +jobs: + deploy: + if: ${{ github.event.workflow_run.conclusion == 'success' }} + runs-on: ubuntu-latest + permissions: + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v4 + with: + path: "." + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4