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