From 9768a2da506cd7049f5aec0b25064698aff3a8a7 Mon Sep 17 00:00:00 2001 From: Saibotk Date: Thu, 4 Jul 2024 21:59:20 +0200 Subject: [PATCH] feat(ci): deploy to GH pages --- .github/workflows/deploy.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..14c5b8b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,38 @@ +name: Build & Deploy to GitHub Pages +on: + push: + branches: + - main + workflow_dispatch: + +permissions: {} + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.9 + - run: pip install -r requirements.txt + - run: mkdocs build + - uses: actions/upload-pages-artifact@v3 + with: + path: "site" + + deploy: + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4