diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index e26f97e2..7e343412 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -9,7 +9,7 @@ on: - 'main' jobs: - pages: + build-dist: runs-on: ubuntu-latest permissions: contents: write @@ -43,6 +43,25 @@ jobs: run: | yarn build + - name: upload dist + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist + + deploy-to-github: + depends-on: build-dist + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Download dist + uses: actions/download-artifact@v2 + with: + name: dist + path: dist + - name: Deploy to GitHub Pages uses: crazy-max/ghaction-github-pages@v3 with: