Skip to content

chore: Update CI/CD workflow to include Python package publishing to … #3

chore: Update CI/CD workflow to include Python package publishing to …

chore: Update CI/CD workflow to include Python package publishing to … #3

Workflow file for this run

name: Publish
on:
push:
branches:
- master
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/crossmark-jotform-api
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install -r dev_requirements.txt
pip install setuptools wheel twine
- name: Build
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPISECRET }}
repository-url: https://pypi.org/project/crossmark-jotform-api/
skip-existing: true
verbose: true