From 8cefddd360288c98dc934375770a7ccbcd4b9f7a Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Fri, 12 Jun 2026 15:04:18 -0400 Subject: [PATCH] trying out a gitea action to sync up 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..b467d48 --- /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 +