pipeline
Some checks failed
/ upload (release) Failing after 7s

This commit is contained in:
pavel 2026-02-05 23:10:00 +01:00
commit add2ba2280
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,22 @@
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

0
gradlew vendored Normal file → Executable file
View file