mirror of
https://github.com/Lapikud/tipilan.git
synced 2026-05-08 10:00:46 +00:00
Only allow development branch to be built & deploy
This commit is contained in:
38
.github/workflows/main.yml
vendored
38
.github/workflows/main.yml
vendored
@@ -3,49 +3,17 @@ name: main
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- teaser-2026
|
||||
- development
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ref:
|
||||
description: Branch or tag to build and deploy
|
||||
required: false
|
||||
default: teaser-2026
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build_teaser:
|
||||
if: ${{ (github.event.inputs.ref || github.ref_name) == 'teaser-2026' }}
|
||||
build:
|
||||
uses: ./.github/workflows/build.yml
|
||||
with:
|
||||
ref: ${{ github.event.inputs.ref || github.ref_name }}
|
||||
runner: prox-1
|
||||
secrets:
|
||||
USER_AUTH: ${{ secrets.USER_AUTH }}
|
||||
|
||||
deploy_teaser:
|
||||
if: ${{ (github.event.inputs.ref || github.ref_name) == 'teaser-2026' }}
|
||||
needs: build_teaser
|
||||
deploy:
|
||||
needs: build
|
||||
uses: ./.github/workflows/deploy.yml
|
||||
with:
|
||||
runner: prox-1
|
||||
secrets:
|
||||
USER_AUTH: ${{ secrets.USER_AUTH }}
|
||||
|
||||
build_dev:
|
||||
if: ${{ (github.event.inputs.ref || github.ref_name) == 'development' }}
|
||||
uses: ./.github/workflows/build.yml
|
||||
with:
|
||||
ref: ${{ github.event.inputs.ref || github.ref_name }}
|
||||
runner: prox-2
|
||||
secrets:
|
||||
USER_AUTH: ${{ secrets.USER_AUTH }}
|
||||
|
||||
deploy_dev:
|
||||
if: ${{ (github.event.inputs.ref || github.ref_name) == 'development' }}
|
||||
needs: build_dev
|
||||
uses: ./.github/workflows/deploy.yml
|
||||
with:
|
||||
runner: prox-2
|
||||
secrets:
|
||||
USER_AUTH: ${{ secrets.USER_AUTH }}
|
||||
|
||||
Reference in New Issue
Block a user