From ca084dcf5004e2638ef691a2415ce8df46f6247e Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Thu, 5 Feb 2026 12:01:39 +0100 Subject: [PATCH] add registration action for uploads --- .forgejo/workflows/upload.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .forgejo/workflows/upload.yml diff --git a/.forgejo/workflows/upload.yml b/.forgejo/workflows/upload.yml new file mode 100644 index 0000000..72395f9 --- /dev/null +++ b/.forgejo/workflows/upload.yml @@ -0,0 +1,33 @@ +name: upload artifacts + +on: push +# TODO: cron + +env: + DTC_TOKEN: ${{ secrets.POOLTOKEN }} + +jobs: + push-artifacts: + name: Upload artifacts to target repo + runs-on: debian-latest + steps: + - name: Install uv + uses: astral-sh/setup-uv@v6 + - name: install git-annex + run: | + uv tool install git-annex + - name: Configure Git + run: | + git config --global user.name ${{ forgejo.actor }} + git config --global user.email ${{ forgejo.actor }}@${{ forgejo.server.url }} + git config --global credential.helper 'store --file ~/.git-credentials' + git credential approve <