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

25 lines
782 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
env:
XDG_RUNTIME_DIR: /run/user/$(id -u)
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/$(id -u)/bus