Skip to content

Commit

Permalink
Break out release
Browse files Browse the repository at this point in the history
  • Loading branch information
max-muoto committed Jan 2, 2025
1 parent f606949 commit 7773109
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,8 @@ jobs:

- name: Run ruff
run: |
poetry run ruff check .
poetry run ruff format --check
uv run ruff check .
uv run ruff format --check
- name: Run pyright
run: poetry run pyright

deploy:
needs: build-and-test
runs-on: macos-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Build and Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
run: |
uv build
uv publish
run: uv run pyright
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Build and publish to PyPi
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
uv build
uv publish

0 comments on commit 7773109

Please sign in to comment.