Skip to content

Commit

Permalink
GHA: Publish release notes when cutting new release (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas authored May 30, 2023
1 parent a95a8d5 commit b153f37
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ name: CI

on:
push:
branches: [main]
branches:
- main
tags:
- "v*"
pull_request:
branches: [main]
branches:
- "*"

jobs:

Expand Down Expand Up @@ -102,3 +106,21 @@ jobs:
name: Screenshots-${{env.IMAGE_NAME}}-${{ matrix.tag }}-${{ matrix.browser }}
path: screenshots/
if-no-files-found: error

release:
if: >-
github.repository == 'ispg-group/aiidalab-ispg'
&& github.ref_type == 'tag'
needs: [pre-commit, test-app]
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write

steps:
- uses: softprops/action-gh-release@v0.1.15
name: Create release
if: startsWith(github.ref, 'refs/tags/v')
with:
generate_release_notes: true
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ target-version = "py39"
ignore = ["E501", "S101", "PT004", "PTH123"]

[tool.bumpver]
current_version = "0.2.0a3"
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
current_version = "v0.2.0a3"
version_pattern = "vMAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
Expand All @@ -52,8 +52,8 @@ push = true
'current_version = "{version}"',
]
"setup.cfg" = [
'version = {version}',
'version = {pep440_version}',
]
"aiidalab_ispg/__init__.py" = [
'__version__ = "{version}"',
'__version__ = "{pep440_version}"',
]

0 comments on commit b153f37

Please sign in to comment.