Skip to content

Commit

Permalink
ci: update release config
Browse files Browse the repository at this point in the history
  • Loading branch information
jnooree committed Mar 7, 2024
1 parent 2d80010 commit 4d9ac7f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Project nurikit - Copyright 2024 SNU Compbio Lab.
# SPDX-License-Identifier: Apache-2.0
#

changelog:
exclude:
authors:
- "dependabot[bot]"
15 changes: 15 additions & 0 deletions .github/workflows/_pypi-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,23 @@ jobs:

- uses: pypa/gh-action-pypi-publish@release/v1

# https://packaging.python.org/en/latest/specifications/version-specifiers/#public-version-identifiers
# Check if the version ends with a/b/rc or .dev (could also include post release number)
- id: prerelease-check
run: |
regex='((a|b|rc)([[:digit:]]+\.post)?|\.dev)[[:digit:]]+$'
if grep -E "$regex" <<<"$GITHUB_REF"; then
echo prerelease=true >> $GITHUB_OUTPUT
else
echo prerelease=false >> $GITHUB_OUTPUT
fi
env:
GITHUB_REF: ${{ github.ref }}

- uses: softprops/action-gh-release@v1
with:
files: "dist/*.whl"
fail_on_unmatched_files: true
generate_release_notes: true
prerelease: ${{ steps.prerelease-check.outputs.prerelease == 'true' }}

0 comments on commit 4d9ac7f

Please sign in to comment.