Skip to content

blog: announce Poetry 2.5.0 #213

blog: announce Poetry 2.5.0

blog: announce Poetry 2.5.0 #213

Workflow file for this run

name: "Deploy Preview"

Check warning on line 1 in .github/workflows/deploy-preview.yaml

View workflow run for this annotation

GitHub Actions / Deploy Preview

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request:
# allow repository maintainers to modify and test workflow
paths:
- ".github/workflows/deploy-preview.yaml"
pull_request_target: # zizmor: ignore[dangerous-triggers]
# enable runs for this workflow when labeled as safe only
# prevent execution when the workflow itself is modified from a fork
types:
- labeled
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {}
jobs:
deploy-preview:
name: Build & Deploy
runs-on: ubuntu-latest
timeout-minutes: 15
if: |
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe'))
|| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
environment:
name: Preview
url: ${{ steps.vercel-action.outputs.preview-url }}
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.10"
- name: Setup Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "22"
- name: Build Assets
run: npm ci && npm run prod
- name: Fetch Documentation
run: |
python -m pip install poetry
poetry install --no-root --only main
poetry run python bin/website build
- name: Build
run: npx hugo --buildDrafts --buildFuture --logLevel info
- name: Deploy
uses: amondnet/vercel-action@de09aeac2ace6599ec9b11ef87558759a496bac4 # v42.3.0
id: vercel-action
with:
vercel-version: 50.44.0
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
scope: python-poetry
github-comment: true
working-directory: public