Skip to content

Commit

Permalink
chore(ci): improve release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jraphanel committed Oct 30, 2023
1 parent a8f7d60 commit 6f34354
Showing 1 changed file with 4 additions and 3 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

0 comments on commit 6f34354

Please sign in to comment.