Adds the three standard CircuitForge workflows from cf-agents: - ci.yml: split backend (Python/ruff/pytest) + frontend (Node/vue-tsc/vitest) jobs - mirror.yml: push-to-GitHub + Codeberg on main/tags - release.yml: changelog generation + Forgejo release on v* tags (Docker push disabled pending BSL registry policy — cf-agents#3) Also adds .cliff.toml with conventional-commits changelog config. Full-stack ci.yml variant tracked in cf-agents#4; update when available. Required secrets: GITHUB_MIRROR_TOKEN, CODEBERG_MIRROR_TOKEN, FORGEJO_RELEASE_TOKEN Closes #69
34 lines
1 KiB
YAML
34 lines
1 KiB
YAML
# Mirror push to GitHub and Codeberg on every push to main or tag.
|
|
# Copied from Circuit-Forge/cf-agents workflows/mirror.yml
|
|
# Required secrets: GITHUB_MIRROR_TOKEN, CODEBERG_MIRROR_TOKEN
|
|
|
|
name: Mirror
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
tags: ['v*']
|
|
|
|
jobs:
|
|
mirror:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Mirror to GitHub
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_MIRROR_TOKEN }}
|
|
REPO: ${{ github.event.repository.name }}
|
|
run: |
|
|
git remote add github "https://x-access-token:${GITHUB_TOKEN}@github.com/CircuitForgeLLC/${REPO}.git"
|
|
git push github --mirror
|
|
|
|
- name: Mirror to Codeberg
|
|
env:
|
|
CODEBERG_TOKEN: ${{ secrets.CODEBERG_MIRROR_TOKEN }}
|
|
REPO: ${{ github.event.repository.name }}
|
|
run: |
|
|
git remote add codeberg "https://CircuitForge:${CODEBERG_TOKEN}@codeberg.org/CircuitForge/${REPO}.git"
|
|
git push codeberg --mirror
|