Skip to content

Commit

Permalink
Update upload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tk2lab authored May 27, 2024
1 parent 4575d12 commit 15bcc04
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Publish package

on:
release:
types: [published]
types:
- published

jobs:
deploy:
Expand All @@ -19,11 +20,16 @@ jobs:
python-version: '3.10'

- name: Install rye
run: curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash
uses: eifinger/setup-rye@v3
with:
enable-cache: true

- name: Publish package
- name: Build
run: |
source $HOME/.rye/env
rye sync
rye build
rye publish --token ${{ secrets.PYPI_TOKEN }}
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 15bcc04

Please sign in to comment.