diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index ed6d0d1..50d7594 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -11,6 +11,12 @@ on: permissions: contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false jobs: build: @@ -43,3 +49,12 @@ jobs: - uses: actions/upload-pages-artifact@v3.0.1 with: path: build/ + + deploy: + needs: build + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4