Skip to content

Bump actions/checkout from 7.0.0 to 7.0.1 (#181) #2034

Bump actions/checkout from 7.0.0 to 7.0.1 (#181)

Bump actions/checkout from 7.0.0 to 7.0.1 (#181) #2034

Workflow file for this run

name: Build
on:
push:
pull_request:
release:
types:
- published
schedule:
# At 12:00 UTC on every day-of-month
- cron: "0 12 */1 * *"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build_dist:
name: Source and wheel distributions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- name: Build distributions
run: pipx run build[virtualenv] --sdist --wheel
- uses: actions/upload-artifact@v7
with:
path: dist/*
upload_pypi:
needs: [build_dist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
permissions:
id-token: write # Required to retrieve a Trusted Publishing token
steps:
- uses: actions/download-artifact@v8
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@v1.14.0