mono #12
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: ๐ Deploy | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
actions: write | |
contents: read | |
jobs: | |
deploy: | |
name: ๐ Deploy | |
runs-on: ubuntu-22.04 | |
# only build/deploy branches on pushes | |
if: ${{ github.event_name == 'push' }} | |
steps: | |
- name: โฌ๏ธ Checkout repo | |
uses: actions/checkout@v4 | |
- name: ๐งฎ Determine Changes | |
id: changed-files | |
run: | | |
echo "::set-output name=changed-files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})" | |
- name: ๐ Deploy Scheduler | |
uses: ./.github/workflows/deploy.scheduler.yml | |
if: | |
${{ contains(steps.changed-files.outputs.changed-files, | |
'apps/scheduler/') }} | |
- name: ๐ Deploy App | |
uses: ./.github/workflows/deploy.app.yml | |
if: | |
${{ contains(steps.changed-files.outputs.changed-files, 'apps/app/') | |
}} |