mirror of
https://github.com/daylinmorgan/swydd.git
synced 2025-02-23 12:55:50 -06:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: Build and Publish to PyPI
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
build-n-publish:
|
|
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: pypi
|
|
url: https://pypi.org/p/swydd
|
|
permissions:
|
|
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Python 3.9
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: "3.9"
|
|
- name: Install pypa/build
|
|
run: >-
|
|
python -m pip install build --user
|
|
- name: Build a binary wheel and a source tarball
|
|
run: >-
|
|
python -m build --sdist --wheel --outdir dist/ .
|
|
|
|
- name: Publish package distributions to PyPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
# Attestations don't currently support reusable workflows
|
|
# so publishing fails if this is enabled: https://github.com/pypi/warehouse/issues/11096
|
|
attestations: false
|