Skip to content

Update staging.yml to remove build on PR close #425

Update staging.yml to remove build on PR close

Update staging.yml to remove build on PR close #425

Workflow file for this run

name: Flatten SLDR and publish master to staging
on:
push:
paths:
- .github/workflows/**
- sldr/**
branches: [ master, feat/*, fix/* ]
jobs:
build:
uses: ./.github/workflows/build.yml
# Deploy built artefacts to the secrets.UPLOAD_TARGET
deploy:
needs: build
if: github.event_name == 'push' || github.event.pull_request.merged == true
uses: ./.github/workflows/deploy.yml
with:
stage-to: sldr-staging
artifact-id: ${{ needs.build.outputs.artifact-id }}
secrets:
uploader-key: ${{ secrets.UPLOADER_SSH_KEY }}
server-address: ${{ secrets.UPLOAD_TARGET }}
repository-dispatch-pat: ${{ secrets.REPO_DISPATCH_TOKEN }}