Files
company_site/.gitea/workflows/deploy.yml
T
westfarn 560485ab16
Unit Tests / test (pull_request) Successful in 15s
Split CI into unittests and deploy workflows.
Unit Tests runs on pull requests and master pushes; Deploy runs only after Unit Tests succeed on a master push.
2026-07-05 07:53:59 -05:00

21 lines
498 B
YAML

name: Deploy Company Site
on:
workflow_run:
workflows: [Unit Tests]
types: [completed]
branches: [master]
jobs:
deploy:
if: gitea.event.workflow_run.conclusion == 'success' && gitea.event.workflow_run.event == 'push'
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ gitea.event.workflow_run.head_sha }}
- name: Deploy to live site
run: bash scripts/deploy.sh "${{ gitea.workspace }}"