tileserver-gl/.github/workflows/pipeline.yml
Vinayak Kulkarni 100c65680d
build: add auto-publish to gh-pages workflow
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
2023-05-09 02:05:56 +05:30

51 lines
1.3 KiB
YAML

name: 'The Pipeline'
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ci-${{ github.ref }}-1
cancel-in-progress: true
jobs:
extract-branch:
name: 'Fetch branch'
runs-on: ubuntu-latest
outputs:
current_branch: ${{ steps.get-branch.outputs.current_branch }}
steps:
- name: Extract branch name 🕊
id: get-branch
run: echo "current_branch=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
ci:
name: 'CI'
needs:
- extract-branch
uses: maptiler/tileserver-gl/.github/workflows/ci.yml@master
ct:
name: 'CT'
needs:
- extract-branch
uses: maptiler/tileserver-gl/.github/workflows/ct.yml@master
publish-openapi-specs:
name: 'Publish OpenAPI specs'
needs:
- extract-branch
- ci
- ct
if: github.event_name == 'push' && needs.extract-branch.outputs.current_branch == 'master'
uses: maptiler/tileserver-gl/.github/workflows/publish-specs.yml@master
automerger:
name: 'Automerge Dependabot PRs'
needs:
- ci
- ct
- extract-branch
if: >
github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
uses: maptiler/tileserver-gl/.github/workflows/automerger.yml@master