From 2ff92f389f18c6cd1ba4c0d566ccdf70d47c09d4 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 25 Jun 2024 13:03:19 +0100 Subject: [PATCH] Make deploy workflow mandatory --- .github/workflows/deploy.yaml | 8 +++++++- .github/workflows/documentation.yaml | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 8eebd46..c3e039c 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -3,15 +3,21 @@ name: Deploy on: push: + branches: + - main + - renovate/** tags: - v* + pull_request: jobs: deploy: runs-on: ubuntu-latest + permissions: + id-token: write steps: # yamllint disable-line rule:line-length - - uses: paddyroddy/.github/actions/python/deployment@69431c4ec1e375c5fe5f8fa96ae1e05f371d8326 # v0 + - uses: paddyroddy/.github/actions/python/deployment@3135c318562994eafc62974821c6f80aa64b35da # v0 with: pyproject-toml: ./pyproject.toml python-version: "3.12" diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 661f2f5..e919b16 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -5,13 +5,15 @@ on: push: branches: - main + - renovate/** + pull_request: jobs: documentation: runs-on: ubuntu-latest steps: # yamllint disable-line rule:line-length - - uses: paddyroddy/.github/actions/python/pdoc@69431c4ec1e375c5fe5f8fa96ae1e05f371d8326 # v0 + - uses: paddyroddy/.github/actions/python/pdoc@3135c318562994eafc62974821c6f80aa64b35da # v0 with: docs-dependency-section: .[docs] gh-pages-publish-directory: ./html/example