Skip to content

Commit

Permalink
Update publish CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sbalian committed Feb 25, 2024
1 parent c230110 commit 761ee52
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
name: Upload Python Package
name: Publish

on:
release:
types: [published]
push:
tags:
- '*'

jobs:
deploy:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- 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/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: actions/setup-python@v5
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
python-version: '3.10'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Build
run: poetry build
- name: Publish
run: poetry publish
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
run:
shell: bash
steps:
- name: Checkout
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
Expand Down

0 comments on commit 761ee52

Please sign in to comment.