Skip to content

Commit

Permalink
add publish to pypi cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ioangatop committed Mar 19, 2024
1 parent 0cb4675 commit ce5f384
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
with:
python-version: "3.10"
architecture: x64
- name: Check prerelease
id: check_version
run: |
if [[ "${{ github.ref }}" =~ ^refs/tags/[0-9.]+$ ]]; then
echo "PRERELEASE=false" >> $GITHUB_OUTPUT
else
echo "PRERELEASE=true" >> $GITHUB_OUTPUT
fi
- name: Setting up nox
uses: wntrblm/[email protected]
with:
Expand All @@ -31,3 +39,14 @@ jobs:
run: |
python -m pip install dist/*.whl
eva --version
- name: Publish package distributions to PyPI
run: pdm publish --no-build
- name: Create Release
uses: actions/create-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: v${{ github.ref }}
draft: true
prerelease: ${{ steps.check_version.outputs.PRERELEASE }}

0 comments on commit ce5f384

Please sign in to comment.