Skip to content

Commit

Permalink
ci: building ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nadobando committed Sep 17, 2023
1 parent e3b456e commit dbef293
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
name: Tests
runs-on: ubuntu-latest
outputs:
build-id: ${{ steps.generate-build-id.outputs.build-id }}
release-id: ${{ steps.generate-release-id.outputs.release-id }}
steps:
- name: Checkout the code
uses: actions/[email protected]
Expand Down Expand Up @@ -88,12 +88,13 @@ jobs:
minimum_coverage: 75
fail_below_threshold: true

build:
release:
name: release & Package
if: github.ref == 'refs/heads/main'
needs:
- test
runs-on: ubuntu-latest
concurrency: build
concurrency: release
permissions:
id-token: write
contents: write
Expand All @@ -110,20 +111,20 @@ jobs:

- name: Store the distribution packages
uses: actions/upload-artifact@v3
if: steps.build.outputs.released == 'true'
if: steps.release.outputs.released == 'true'

with:
name: python-package-distributions
path: dist/

outputs:
released: steps.build.outputs.released
released: ${{ steps.release.outputs.released

release:
publish:
needs:
- pre-commit
- build
if: needs.build.outputs.released == 'true'
- release
if: needs.release.outputs.released == 'true'
concurrency: release
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit dbef293

Please sign in to comment.