Skip to content

Commit

Permalink
update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Apr 1, 2024
1 parent e641540 commit f9e73aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Upload Python Package

on:
workflow_dispatch:
release:
types: [published]

Expand All @@ -10,12 +9,15 @@ permissions:

jobs:
pypi-publish:
name: upload release to PyPI
name: Upload release to PyPI
if: |
startsWith(github.ref, 'refs/tags/') && (
contains(github.ref, 'refs/tags/main') ||
(contains(github.ref, 'refs/tags/feat') && (contains(github.ref, 'alpha') || contains(github.ref, 'beta')))
)
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ allow-direct-references = true

[project]
name = "testproject_1"
version = "0.1.1"
version = "0.1.2"
authors = [
{ name="p0pe" },
]
Expand Down

0 comments on commit f9e73aa

Please sign in to comment.