Skip to content

Commit

Permalink
ci: PyPI publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
outloudvi committed Jul 22, 2024
1 parent c95943d commit 42b50d9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to PyPI

on:
workflow_dispatch:

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/mw2fcitx
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

- name: Install Poetry
run: pipx install poetry

- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.12'
cache: 'poetry'

- name: Install dependencies
run: |
poetry install
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 42b50d9

Please sign in to comment.