Skip to content

Update publish.yml

Update publish.yml #5

Workflow file for this run

name: Publish Python Package
on:
push:
branches:
- master
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
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/[email protected]
with:
password: ${{ secrets.PYPITOKEN }}