Skip to content

update workflow trigger for publish #1

update workflow trigger for publish

update workflow trigger for publish #1

Workflow file for this run

name: Upload Python Package
# on:
# release:
# types: [published]
on:
push:
branches:
- feature/deploy
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}