diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8b4117f..8446d74 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -37,4 +37,29 @@ jobs: --dir dist \ --site ${{ secrets.NETLIFY_SITE_ID }} \ --auth ${{ secrets.NETLIFY_TOKEN }} \ - --prod \ No newline at end of file + --prod + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + - name: Install Dependencies + run: yarn install + - name: Build + run: yarn build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ".dist" + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4