Skip to content

Commit

Permalink
👷 auto publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Oct 27, 2023
1 parent 292ecd3 commit ad505c8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish

on:
push:
tags:
- '**'
workflow_dispatch: ~

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11

- name: Install Poetry and Twine
run: |
pip install poetry twine
- name: Install dependencies
run: poetry install

- name: Build wheel
run: poetry build

- name: upload to pypi
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ad505c8

Please sign in to comment.