Skip to content

Commit

Permalink
Merge pull request #576 from sanders41/uv-publish
Browse files Browse the repository at this point in the history
Add build step to uv pypi publish
  • Loading branch information
sanders41 authored Oct 28, 2024
2 parents 89f43f0 + cd252b2 commit 425b648
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/github_actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,9 @@ jobs:
python-version: "{python_version}"
- name: Install Dependencies
run: uv sync --frozen
- name: Build and publish package
- name: Build package
run: uv build
- name: Publish package
run: uv publish
"#
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ source: src/github_actions.rs
expression: content
snapshot_kind: text
---
"name: PyPi Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n permissions:\n # For PyPI's trusted publishing.\n id-token: write\n steps:\n - uses: actions/checkout@v4\n - name: Install uv\n uses: astral-sh/setup-uv@v3\n with:\n enable-cache: true\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: \"3.12\"\n - name: Install Dependencies\n run: uv sync --frozen\n - name: Build and publish package\n run: uv publish\n"
"name: PyPi Publish\non:\n release:\n types:\n - published\njobs:\n deploy:\n runs-on: ubuntu-latest\n permissions:\n # For PyPI's trusted publishing.\n id-token: write\n steps:\n - uses: actions/checkout@v4\n - name: Install uv\n uses: astral-sh/setup-uv@v3\n with:\n enable-cache: true\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: \"3.12\"\n - name: Install Dependencies\n run: uv sync --frozen\n - name: Build package\n run: uv build\n - name: Publish package\n run: uv publish\n"

0 comments on commit 425b648

Please sign in to comment.