From 8d2e514a5e359697cd6f73135cce4e1d972869fb Mon Sep 17 00:00:00 2001 From: Murthadza Aznam <61819672+Thaza-Kun@users.noreply.github.com> Date: Fri, 29 Mar 2024 12:32:15 +0800 Subject: [PATCH] :green_heart: Upload page artifact + Deploy page --- .github/workflows/build.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6442203..a4d9e70 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ on: [push, pull_request] jobs: - test: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -23,3 +23,19 @@ jobs: - run: yarn wasm - run: yarn build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./build + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: build + runs-on: ubuntu-latest + name: Deploy + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4