Feature/32 deploy api as azure function app (#34)
* changing api to azure function app * changing api to azure function app * changing api to azure function app * changing api to azure function app * changing api to azure function app * changing api to azure function app * changing api to azure container app
This commit was merged in pull request #34.
This commit is contained in:
37
.github/workflows/pull_request.yaml
vendored
Normal file
37
.github/workflows/pull_request.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Pull Request
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, closed]
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-deploy-api:
|
||||
if: github.event_name == 'pull_request' && github.event.action != 'closed'
|
||||
name: build-deploy-api
|
||||
uses: ./.github/workflows/api.yaml
|
||||
with:
|
||||
calling_workflow: dev
|
||||
secrets: inherit
|
||||
|
||||
build-deploy-app:
|
||||
if: github.event_name == 'pull_request' && github.event.action != 'closed'
|
||||
name: build-deploy-app
|
||||
uses: ./.github/workflows/app.yaml
|
||||
with:
|
||||
calling_workflow: dev
|
||||
deployment_environment: staging
|
||||
secrets: inherit
|
||||
|
||||
close-pull-request-job:
|
||||
if: github.event_name == 'pull_request' && github.event.action == 'closed'
|
||||
runs-on: ubuntu-latest
|
||||
name: Close Pull Request Job
|
||||
steps:
|
||||
- name: Close Pull Request
|
||||
id: closepullrequest
|
||||
uses: Azure/static-web-apps-deploy@v1
|
||||
with:
|
||||
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
|
||||
action: 'close'
|
||||
Reference in New Issue
Block a user