From a699ad66b1d7513d94dbadb301965470f984fb59 Mon Sep 17 00:00:00 2001 From: Matt Allen Date: Sun, 15 Sep 2024 16:54:09 -0500 Subject: [PATCH] Add pages deployment --- .github/workflows/python-app.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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