Skip to content

Commit

Permalink
chore(ci): improve release workflow (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrab13 committed Nov 4, 2023
1 parent a8f7d60 commit 4e47cbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,19 @@ jobs:
force: ${{ needs.inputs.outputs.force_arg }}

- uses: actions/upload-artifact@v3
if: steps.release.outputs.released == 'true'
with:
name: linux-build
path: ./installer/dist/*.tar.gz

- uses: actions/upload-artifact@v3
if: steps.release.outputs.released == 'true'
with:
name: python-build
path: ./dist/*

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
continue-on-error: true
if: steps.release.outputs.released == 'true'
with:
skip-existing: true
Expand All @@ -68,7 +69,7 @@ jobs:
needs: [release]
runs-on: windows-latest
concurrency: windows-build
if: github.repository == 'crabisoft/pdbstore' && ${{ needs.release.outputs.released == 'true' }}
if: github.repository == 'crabisoft/pdbstore' && needs.release.outputs.released == 'true'
steps:
- uses: actions/checkout@v4.1.0
with:
Expand All @@ -88,7 +89,7 @@ jobs:
path: ./installer/dist/*.zip

release-notes:
if: github.repository == 'crabisoft/pdbstore' && ${{ needs.release.outputs.released == 'true' }}
if: github.repository == 'crabisoft/pdbstore' && needs.release.outputs.released == 'true'
needs: [release, windows-build]
runs-on: ubuntu-latest
concurrency: publish
Expand Down
2 changes: 1 addition & 1 deletion templates/CHANGELOG.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{%- endif %}
{# RELEASED #}
{%- for version, release in context.history.released.items() %}
{%- if version > "1.0.0" %}
{%- if version > "0.0.1" %}
## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})
{% for type_, commits in release["elements"] | dictsort %}
### {{ type_ | capitalize }}
Expand Down

0 comments on commit 4e47cbc

Please sign in to comment.