mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Update deploy.yml
This commit is contained in:
12
.github/workflows/deploy.yml
vendored
12
.github/workflows/deploy.yml
vendored
@@ -7,11 +7,19 @@ on:
|
||||
branches: [ devel, main ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
environment-check:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' }}
|
||||
outputs:
|
||||
env_name: ${{ github.event.workflow_run.head_branch == 'devel' && 'qs' || 'prod' }}
|
||||
steps:
|
||||
- run: echo "Determining environment..."
|
||||
|
||||
deploy:
|
||||
needs: environment-check
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: ${{ github.event.workflow_run.head_branch == 'devel' && 'qs' || 'prod' }}
|
||||
name: ${{ needs.environment-check.outputs.env_name }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user