Skip to content

Commit

Permalink
Merge pull request #58 from TheJacksonLaboratory/G3-211-release-genew…
Browse files Browse the repository at this point in the history
…eaver-api-0-4-0

Attempting a different syntax for step conditional
  • Loading branch information
bergsalex authored Apr 24, 2024
2 parents 52d9d81 + e7a8090 commit d7b8d38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
should_release: ${{ steps.version_check.outputs.should_release }}
prerelease: ${{ steps.version_check.outputs.prerelease }}
version: ${{ steps.version_check.outputs.version }}
schedule_prod_release: ${{ steps.version_check.outputs.schedule_prod_release }}
steps:
- name: Check out code
uses: actions/checkout@v3
Expand Down Expand Up @@ -93,29 +94,29 @@ jobs:
build:
name: "Build"
needs: [ test, check-coverage, format-lint, version ]
if: steps.version_check.outputs.should_release == 'true'
if: jobs.version.outputs.should_release == 'true'
uses: ./.github/workflows/_skaffold-build-k8s.yml
secrets: inherit
deploy_sqa:
name: "Deploy: SQA"
needs: [build, version]
if: steps.version_check.outputs.should_release == 'true'
if: jobs.version.outputs.should_release == 'true'
uses: ./.github/workflows/_skaffold-deploy-k8s.yml
secrets: inherit
with:
environment: "jax-cluster-dev-10--sqa"
deploy_stage:
name: "Deploy: Stage"
needs: [ build, version, deploy_sqa]
if: steps.version_check.outputs.schedule_prod_release == 'true'
if: jobs.version.outputs.schedule_prod_release == 'true'
uses: ./.github/workflows/_skaffold-deploy-k8s.yml
secrets: inherit
with:
environment: "jax-cluster-prod-10--stage"
deploy_prod:
name: "Deploy: Prod"
needs: [ build, version, deploy_stage]
if: steps.version_check.outputs.schedule_prod_release == 'true'
if: jobs.version.outputs.schedule_prod_release == 'true'
uses: ./.github/workflows/_skaffold-deploy-k8s.yml
secrets: inherit
with:
Expand All @@ -124,7 +125,7 @@ jobs:
name: "Create Github Release Draft"
runs-on: ubuntu-latest
needs: [ deploy_prod ]
if: steps.version_check.outputs.schedule_prod_release == 'true'
if: jobs.version.outputs.schedule_prod_release == 'true'
steps:
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "geneweaver-api"
version = "0.4.0b1"
version = "0.4.0b2"
description = "The Geneweaver API"
authors = [
"Alexander Berger <[email protected]>",
Expand Down

0 comments on commit d7b8d38

Please sign in to comment.