Fix the usage of the pypa/gh-action-pypi-publish action #23
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
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- '\d+\.\d+\.\d+' | |
name: Publish to Pypi | |
jobs: | |
deploy: | |
name: Deploy to PYPI | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/project/metar-taf-parser-mivek/ | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
make install_deploy | |
- name: Build the archives | |
run: | | |
python -m build --sdist --wheel --outdir dist/ | |
- name: Publish to PyPI | |
uses: pypa/[email protected] |