[๐ท๐] Build on refs/heads/master
and deploy
#3253
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 |