From d86986b6575bc031989fe87968e8210ee6d688da Mon Sep 17 00:00:00 2001 From: samshara Date: Wed, 31 Jan 2024 14:08:56 +0545 Subject: [PATCH] fix: add github pages deploy to build ci workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10e93f6..45c27d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,3 +22,35 @@ jobs: - name: Build run: yarn build + + deploy-page: + needs: build + runs-on: ubuntu-latest + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + defaults: + run: + working-directory: gh-pages + + permissions: + contents: read + pages: write + id-token: write + + steps: + - uses: actions/checkout@v3 + + - name: Install + Build + run: docker-compose up page-build + + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: gh-pages/out + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2