Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/manual_release_beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
version_number: ${{ steps.release_prepare.outputs.version_number }}
changelog: ${{ steps.release_prepare.outputs.changelog }}
changelog_artifact_name: ${{ steps.release_prepare.outputs.changelog_artifact_name }}
steps:
- uses: apify/actions/git-cliff-release@v1.9.0
id: release_prepare
Expand All @@ -46,7 +46,7 @@ jobs:
needs: [release_prepare]
runs-on: ubuntu-latest
environment:
name: pypi
name: automation
deployment: false
permissions:
contents: write
Expand All @@ -58,7 +58,7 @@ jobs:
uses: apify/actions/python-bump-and-update-changelog@v1.9.0
with:
version-number: ${{ needs.release_prepare.outputs.version_number }}
changelog: ${{ needs.release_prepare.outputs.changelog }}
changelog-artifact-name: ${{ needs.release_prepare.outputs.changelog_artifact_name }}
apify-service-account-github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

# Publishing runs as a separate workflow run of `publish_to_pypi.yaml` (see the comment there).
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/manual_release_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ env:
jobs:
build_docs:
name: Build docs
# Limits the docs build to release branches. The service account token is only in `automation`, which no job that
# runs the docs toolchain uses.
environment:
name: docs
deployment: false
permissions:
contents: read
checks: read
Expand Down Expand Up @@ -132,7 +137,7 @@ jobs:
contents: read
runs-on: ubuntu-latest
environment:
name: github-pages
name: automation
deployment: false

steps:
Expand Down Expand Up @@ -180,6 +185,16 @@ jobs:
- name: Deploy artifact to GitHub Pages
uses: actions/deploy-pages@v5.0.1

invalidate_cloudfront_cache:
name: Invalidate CloudFront cache
needs: [deploy_docs]
environment:
name: automation
deployment: false
permissions: {}
runs-on: ubuntu-latest

steps:
- name: Invalidate CloudFront cache
run: |
gh workflow run invalidate-cloudfront.yml \
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/manual_release_stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
outputs:
version_number: ${{ steps.release_prepare.outputs.version_number }}
tag_name: ${{ steps.release_prepare.outputs.tag_name }}
changelog: ${{ steps.release_prepare.outputs.changelog }}
changelog_artifact_name: ${{ steps.release_prepare.outputs.changelog_artifact_name }}
release_notes: ${{ steps.release_prepare.outputs.release_notes }}
steps:
- uses: apify/actions/git-cliff-release@v1.9.0
Expand All @@ -65,7 +65,7 @@ jobs:
needs: [release_prepare]
runs-on: ubuntu-latest
environment:
name: pypi
name: automation
deployment: false
permissions:
contents: write
Expand All @@ -77,7 +77,7 @@ jobs:
uses: apify/actions/python-bump-and-update-changelog@v1.9.0
with:
version-number: ${{ needs.release_prepare.outputs.version_number }}
changelog: ${{ needs.release_prepare.outputs.changelog }}
changelog-artifact-name: ${{ needs.release_prepare.outputs.changelog_artifact_name }}
apify-service-account-github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

github_release:
Expand Down Expand Up @@ -131,6 +131,8 @@ jobs:

doc_release:
name: Doc release
# The `github-pages` environment deploys only from `master`, so a release from a `release-v*` branch skips the docs.
if: github.ref_name == 'master'
needs: [changelog_update, pypi_publish, version_docs]
permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual_version_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
needs: [version_docs]
runs-on: ubuntu-latest
environment:
name: pypi
name: automation
deployment: false
permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on_schedule_regenerate_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
name: Regenerate models
runs-on: ubuntu-latest
environment:
name: pypi
name: automation
deployment: false

steps:
Expand Down
Loading