Deployment occurs only after unit test success (fix in the CI/CD)

This commit is contained in:
2024-10-17 16:42:46 +02:00
parent 159ab3b988
commit 590e373d46

View File

@@ -1,12 +1,14 @@
name: Deploy to server
on:
push:
branches:
- main
workflow_run:
workflows: ["Unit Tests"]
types:
- completed
jobs:
build-and-deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
environment: production