ci: setup release pipeline (#1)

This commit is contained in:
Luke Alvoeiro
2024-08-23 19:07:08 -07:00
committed by GitHub
parent dd126afa6c
commit 1d0ab9777b
2 changed files with 36 additions and 2 deletions
+31
View File
@@ -0,0 +1,31 @@
name: PYPI Release
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
pypi_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install UV
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Source Cargo Environment
run: source $HOME/.cargo/env
- name: Build with UV
run: uvx --from build pyproject-build --installer uv
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN_TEMP }}
packages_dir: ./dist/