Skip to content

Merge pull request #15 from azazellochg/devel #8

Merge pull request #15 from azazellochg/devel

Merge pull request #15 from azazellochg/devel #8

# Workflow to send master to pypi and tag the branch
name: master to pypi with comments and tag
# Triggers the workflow on push to the master branch
on:
push:
branches: [ master ]
env:
FOLDER_WITH_VERSION: pytemscript
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for Trusted Publishing
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools twine build
- name: Check extra requirements
if: ${{ hashFiles('requirements.txt') != '' }}
run: pip install -r requirements.txt
- name: Build dist
run: python -m build --no-isolation
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1