Replace GitLab CI with Gitea Actions workflows
GitLab CE was migrated off to reduce memory pressure on the host, so .gitlab-ci.yml is dead. Split into one workflow file per site (shared, 40k-rankings, aos-rankings, kingmaker, scouting, events) since Gitea/ GitHub Actions path filters are workflow-level, not job-level like GitLab's rules.changes. Build+deploy are combined into a single job per site rather than separate build/deploy stages, since both run on the same host and there's no need to round-trip artifacts between them. The weekly ELO refresh job's schedule (Wed 02:00 Atlantic/Azores) is approximated as a fixed 02:00 UTC cron, since Actions cron has no DST handling. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
name: Deploy kingmaker
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'sites/kingmaker/**'
|
||||
- 'shared/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: host
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
working-directory: sites/kingmaker
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
- name: Deploy
|
||||
run: |
|
||||
rsync -avz --delete --exclude images --exclude footer.html sites/kingmaker/dist/ /var/www/domains/gateway-gamers.net/kingmaker/
|
||||
Reference in New Issue
Block a user