This commit is contained in:
parent
495987c06c
commit
57e84c35b5
3 changed files with 33 additions and 0 deletions
24
.forgejo/workflows/pipeline.yaml
Normal file
24
.forgejo/workflows/pipeline.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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: |
|
||||
export XDG_RUNTIME_DIR=/run/user/$(id -u)
|
||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||
cp build/libs/todo-all.jar ~/todo/app.jar
|
||||
systemctl --user restart todo
|
||||
Loading…
Add table
Add a link
Reference in a new issue