diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 00000000..c7efc0a2 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,47 @@ +name: Documentation + +on: + pull_request: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.9" + - name: Init python poetry action + uses: abatilo/actions-poetry@v3.0.0 + with: + poetry-version: 1.8.3 + - name: Install dependencies + run: poetry install + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Sphinx build + run: poetry run sphinx-build --define html_baseurl="${{ steps.pages.outputs.base_path }}" docs _site/ + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + deploy: + needs: build + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + + 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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3d40747b..8716c157 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,10 @@ -name: Lint pyzeebe - -on: [push, pull_request] +name: Lint +on: + pull_request: + push: + branches: + - master jobs: type-checking: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dcfa1e56..81a39681 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish pyzeebe +name: Publish on: release: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 25357a69..9897434f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,10 @@ name: Test pyzeebe -on: [push, pull_request] +on: + pull_request: + push: + branches: + - master jobs: # 3.6, 3.7 and 3.8 only for passing branch rules