From 49b2430dff9a9f657ab73a743314077020def1e2 Mon Sep 17 00:00:00 2001 From: Lucia Date: Wed, 9 Apr 2025 11:57:06 +0200 Subject: [PATCH] feat: modify workflow to use hybrid workflow --- .github/workflows/deploy.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ac7011d..ed44618 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,11 +13,9 @@ permissions: id-token: write jobs: - deploy: - name: Deploy to GitHub Pages + build: + name: Build to GitHub Pages runs-on: ubuntu-latest - environment: - name: github-pages steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -35,5 +33,15 @@ jobs: with: name: github-pages path: ./build - - - uses: actions/deploy-pages@v4 + + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + needs: build + environment: + name: github-pages + steps: + - uses: actions/download-artifact@v3 + with: + name: site-build + - uses: actions/deploy-pages@v4 \ No newline at end of file