Merge pull request #60 from dimitrismistriotis/reconfigured_release_f… #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Upload Release Using Trusted Publishers | |
# | |
name: "Release" | |
'on': | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
name: "Build package" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- run: | | |
python -m pip install --upgrade pip | |
pip install -U pip setuptools | |
- run: python setup.py sdist | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: ./dist | |
pypi-publish: | |
name: Upload release to PyPI | |
needs: build | |
runs-on: ubuntu-latest | |
environment: | |
name: release | |
url: 'https://pypi.org/project/alt-profanity-check/' | |
permissions: | |
id-token: write | |
steps: | |
- uses: pypa/gh-action-pypi-publish@release/v1 |