[π·π] Build on refs/heads/master
and deploy
#3362
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: '[π·π] Build and Deploy' | |
# prettier-ignore | |
run-name: '[π·π] Build on `${{ github.ref }}`${{ (github.repository_owner == ''LSS-Manager'' && (github.ref == ''refs/heads/master'' || github.ref == ''refs/heads/dev'')) && '' and deploy'' || '''' }}' | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
workflow_dispatch: | |
jobs: | |
build: | |
name: '[π·π] Build' | |
if: ${{ !contains(github.event.head_commit.message, 'skip ci') || !contains(github.event.head_commit.message, 'ci-push') }} | |
uses: ./.github/workflows/build.yml | |
with: | |
ref: ${{ github.ref }} | |
secrets: inherit | |
deploy: | |
needs: [build] | |
name: '[π·π] Deploy' | |
if: github.repository_owner == 'LSS-Manager' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev') | |
uses: ./.github/workflows/deploy.yml | |
with: | |
branch: ${{ needs.build.outputs.branch }} | |
secrets: inherit |