add registration action for uploads #1
1 changed files with 33 additions and 0 deletions
33
.forgejo/workflows/upload.yml
Normal file
33
.forgejo/workflows/upload.yml
Normal file
|
|
@ -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 <<EOF
|
||||||
|
url=${{ forgejo.server_url }}
|
||||||
|
username=${{ forgejo.actor }}
|
||||||
|
password=${{ forgejo.token }}
|
||||||
|
EOF
|
||||||
|
echo OK
|
||||||
|
- name: Fetch and run script
|
||||||
|
run: |
|
||||||
|
wget https://hub.psychoinformatics.de/adina/Testing-CI-uploads/raw/branch/main/.forgejo/tools/register-upload.py
|
||||||
|
uv run register-upload.py
|
||||||
Loading…
Add table
Add a link
Reference in a new issue