Skip to content

Commit

Permalink
use PYPI_API_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-yin committed Nov 7, 2023
1 parent 60fe207 commit 8ad4450
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
name: Upload Python Package

on:
pull_request:
push:
branches:
- main
release:
types: [published]

permissions:
contents: read
Expand All @@ -27,9 +25,13 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install poetry
- name: Build package
run: poetry build
- name: Publish package
uses: pypa/gh-action-pypi-publish@v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 8ad4450

Please sign in to comment.