Files
ai-taxonomy-literature-anal…/.gitea/workflows/deploy.yml
T
2026-10-22 15:38:57 +00:00

22 lines
591 B
YAML

name: Deploy
on:
push:
branches: [main]
workflow_dispatch: {}
jobs:
deploy:
runs-on: ces-control
timeout-minutes: 60
steps:
- name: Checkout
run: |
git init .
git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git"
git -c http.extraHeader="Authorization: token ${{ github.token }}" fetch --depth 1 origin "$GITHUB_SHA"
git checkout --detach FETCH_HEAD
- name: Deploy (systemd service, permanent)
env:
APP_PORT: ${{ vars.APP_PORT }}
run: sh scripts/deploy.sh "$GITHUB_SHA"