Skip to content

Change environment and build file #18

Change environment and build file

Change environment and build file #18

Workflow file for this run

#
# Upload Release Using Trusted Publishers
#
name: "Release"
'on':
push:
tags:
- v*
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: 'https://pypi.org/project/alt-profanity-check/'
permissions:
id-token: write
steps:
- name: Publish package distributions to PyPI
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: |
python -m pip install --upgrade pip
- run: python setup.py sdist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1