Skip to content

deploy: allow deploying in forks #2

deploy: allow deploying in forks

deploy: allow deploying in forks #2

Workflow file for this run

name: Deploy to Azure
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '.github/workflows/deploy.yml'
- 'GitGitGadget/**'
jobs:
deploy:
if: github.event.repository.fork == false || vars.DEPLOY_TO_AZURE == 'true'
environment: deploy-to-azure
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Login via Azure CLI'
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}
- uses: Azure/functions-action@v1
with:
app-name: ${{ secrets.AZURE_FUNCTION_NAME || 'GitGitGadget' }}
respect-funcignore: true