todo/.forgejo/workflows/pipeline.yaml
pavel add2ba2280
Some checks failed
/ upload (release) Failing after 7s
pipeline
2026-02-06 01:06:27 +01:00

22 lines
654 B
YAML

on:
release:
types: [published]
jobs:
upload:
runs-on: host
permissions:
packages: write
steps:
- uses: actions/setup-node@v6
with:
node-version: 24
- uses: actions/checkout@v6
- run: ./gradlew buildFatJar
- run: |
curl -X POST \
-H "Authorization: token ${{ github.token }}" \
-F "attachment=@build/libs/todo-all.jar" \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets"
- run: |
cp build/libs/todo-all.jar ~/todo/app.jar
systemctl --user restart todo