Skip to content

Commit

Permalink
ci: simplify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
baumstern committed Oct 19, 2023
1 parent b31ba8d commit 8772edf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-and-test-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ concurrency:
cancel-in-progress: true

jobs:
publish-cli-package:
if: github.ref == 'refs/heads/dev'
uses: ./.github/workflows/publish-dev-packages.yaml

deploy-dev:
uses: ./.github/workflows/firebase-deploy-dev.yaml
secrets: inherit
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ concurrency:
cancel-in-progress: true

jobs:
publish-cli-package:
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/publish-production-packages.yaml

deploy-production:
uses: ./.github/workflows/firebase-deploy-production.yaml
secrets: inherit
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ concurrency:
cancel-in-progress: true

jobs:
publish-cli-package:
if: github.ref == 'refs/heads/staging'
uses: ./.github/workflows/publish-staging-packages.yaml

deploy-staging:
uses: ./.github/workflows/firebase-deploy-staging.yaml
secrets: inherit
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/publish-dev-packages.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Publish @devtion

on:
push:
branches:
- dev
workflow_call:

jobs:
npm-publish-dev:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/publish-production-packages.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Publish @p0tion

on:
push:
branches:
- main
workflow_call:

jobs:
npm-publish:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/publish-staging-packages.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Publish @stagtion

on:
push:
branches:
- staging
workflow_call:

jobs:
npm-publish-staging:
Expand Down

0 comments on commit 8772edf

Please sign in to comment.