Skip to content

Commit

Permalink
Merge pull request #15 from coreruleset/chore/add-pre-release
Browse files Browse the repository at this point in the history
chore: add pre release workflow
  • Loading branch information
fzipi authored Feb 18, 2025
2 parents 8433d6e + cba49e9 commit 5f53324
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
- name: Publish
run: |
uv build
uv publish --index testpypi
uv publish
28 changes: 28 additions & 0 deletions .github/workflows/pypi-test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish to PyPI
on:
release:
types: [prereleased]

jobs:
test:
name: Release
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-file: "pyproject.toml"

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.6.1"

- name: Publish
run: |
uv build
uv publish --index testpypi

0 comments on commit 5f53324

Please sign in to comment.