diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1a41e68..c223ba5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -48,3 +48,28 @@ jobs: name: Resume-PNG path: '*.png' if-no-files-found: error + upload: + runs-on: ubuntu-latest + needs: + - render + if: "github.ref == 'refs/heads/main'" + permissions: + contents: read + pages: write + id-token: write + concurrency: + group: "pages" + cancel-in-progress: false + steps: + - name: Download all workflow run artifacts + uses: actions/download-artifact@v3 + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2