Skip to content

Commit

Permalink
fix: Deploy to production is not trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
42atomys committed May 8, 2022
1 parent 7d06c6b commit 882c34d
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/deployer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ jobs:
name: Deploy to next 🎉
runs-on: ubuntu-latest
needs: [ build_and_push ]
if: ${{ github.event.action == 'prereleased' || (github.event.action == 'published' && github.event.release.draft == false && github.event.release.prerelease == true) }}
if: |
github.event.action == 'prereleased' ||
(
github.event.action == 'published' &&
github.event.release.draft == false &&
github.event.release.prerelease == true
)
steps:
- uses: actions/checkout@v3
- uses: azure/[email protected]
Expand Down Expand Up @@ -110,7 +116,16 @@ jobs:
name: Deploy to live 🚀
runs-on: ubuntu-latest
needs: [ build_and_push, deploy_next ]
if: ${{ github.event.action == 'released' || (github.event.action == 'published' && github.event.release.draft == false && github.event.release.prerelease == false) }}
if: |
always() &&
(needs.build_and_push.result == 'success') &&
(needs.deploy_next.result == 'success' || needs.deploy_next.result == 'skipped') &&
github.event.action == 'released' ||
(
github.event.action == 'published' &&
github.event.release.draft == false &&
github.event.release.prerelease == false
)
steps:
- uses: actions/checkout@v3
- uses: azure/[email protected]
Expand Down

0 comments on commit 882c34d

Please sign in to comment.