Skip to content

Merge pull request #23 from wasilak/renovate/actions-setup-python-5.x #34

Merge pull request #23 from wasilak/renovate/actions-setup-python-5.x

Merge pull request #23 from wasilak/renovate/actions-setup-python-5.x #34

name: Upload Python Package
on:
push:
branches:
- master
tags:
- "*"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
repository: wasilak/ansible-lint-junit