caterium-app/.github/workflows/promote-production.yml

29 lines
536 B
YAML

name: Caterium Direct Production
on:
push:
branches: [main]
permissions:
contents: write
concurrency:
group: caterium-production-promotion
cancel-in-progress: true
jobs:
promote:
runs-on: ubuntu-latest
steps:
- name: Checkout current main
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Publish immediately to production branch
shell: bash
run: |
set -euo pipefail
git push origin HEAD:refs/heads/production