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 <