release.yml moves from .github/ to .forgejo/ so it runs directly on the hestia runner without needing the GitHub mirror. GitHub upload step dropped; bakery uses dl.breadway.dev as primary. LICENSE added to fix PKGBUILD package() failure.
19 lines
522 B
YAML
19 lines
522 B
YAML
name: Mirror to GitHub
|
|
|
|
on:
|
|
push:
|
|
branches: ['**']
|
|
tags: ['**']
|
|
|
|
jobs:
|
|
mirror:
|
|
runs-on: [self-hosted, hestia]
|
|
steps:
|
|
- name: Mirror to GitHub
|
|
run: |
|
|
set -euo pipefail
|
|
git clone --mirror "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" repo.git
|
|
cd repo.git
|
|
git push --prune \
|
|
"https://x-access-token:${{ secrets.MIRROR_TOKEN }}@github.com/Breadway/breadpaper.git" \
|
|
'+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*'
|