dotnet-podcasts/.github/workflows/podcast-api.yml

34 lines
743 B
YAML

name: Podcast API CICD
on:
push:
branches: [ main ]
paths:
- 'src/Services/Podcasts/**'
- 'deploy/Services/api.bicep'
- '.github/workflows/podcast-api.yml'
pull_request:
branches: [ main ]
paths:
- 'src/Services/Podcasts/**'
- '.github/workflows/podcast-api.yml'
workflow_dispatch:
jobs:
buildPushDeployStaging:
name: 'staging'
if: "!contains(github.ref, 'refs/heads/main')"
uses: ./.github/workflows/template-api.yml
secrets: inherit
with:
environment: staging
buildPushDeployProd:
name: 'prod'
if: contains(github.ref, 'refs/heads/main')
uses: ./.github/workflows/template-api.yml
secrets: inherit
with:
environment: prod