Skip to content

Commit

Permalink
chore: publish pypi package from github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Mar 18, 2024
1 parent 913ed8a commit 816846d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ tasks:
- git tag v{{.NEW_VERSION}}
- git push --tags
- gh release create -d --target {{.RELEASE_BRANCH}} --title v{{.NEW_VERSION}} --notes-file {{.RELEASE_NOTE_FILE}} v{{.NEW_VERSION}}
- flit build
- flit publish

clean:
cmds:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
main:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: pip install flit
- name: Build the package
run: flit build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 816846d

Please sign in to comment.