From 1da2188bdf011d0e18a43e21b0d1eaacede67ff6 Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Sat, 13 Jun 2026 21:28:59 -0400 Subject: [PATCH] Gitea action to sync to GitHub --- .gitea/workflows/publish.yaml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/publish.yaml diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..eba581a --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,37 @@ +name: Sync GitHub + +on: + push: + branches: + - '**' + +jobs: + sync: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config --global user.name "Andrew Sync" + git config --global user.email "sync@digitaladapt.com" + + - name: Add GitHub Remote + env: + SYNC_TOKEN: ${{ secrets.SYNC_GITHUB_TOKEN }} + SYNC_TARGET: ${{ vars.SYNC_GITHUB_TARGET }} + run: | + git remote add github "https://digitaladapt:${SYNC_TOKEN}@github.com/$SYNC_TARGET" + + - name: Push Current Branch + run: | + git push github HEAD:${GITHUB_REF_NAME} + + - name: Push Tags + run: | + git push github --tags +