Skip to content

Commit

Permalink
Add release pipeline (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin authored Feb 14, 2024
1 parent 6de91e3 commit e51563c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish
on:
push:
tags: "v*"

jobs:

publish:
name: Publish release
runs-on: ubuntu-22.04
permissions:
contents: write
id-token: write
steps:
- name: Run CI
uses: ./release.yml
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Make wheel dir
run: mkdir dist
- name: Move wheels
run: mv *.whl dist && mv *.tar.gz dist
- name: Make new release
run: >
gh release create ${{ github.ref_name }} \
--repo ${{ github.repository }} \
--generate-notes \
$(find . -type f)
env:
GH_TOKEN: ${{ github.token }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit e51563c

Please sign in to comment.