parent
34ff2718ea
commit
a8305f90ee
1 changed files with 3 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ jobs:
|
|||
node-version: 24
|
||||
- uses: actions/checkout@v6
|
||||
- run: |
|
||||
cd frontend
|
||||
npm install
|
||||
npm run build
|
||||
- run: ~/.cargo/bin/cargo build -r
|
||||
|
|
@ -21,6 +22,7 @@ jobs:
|
|||
-F "attachment=@target/release/bot" \
|
||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets"
|
||||
- run: |
|
||||
cd ..
|
||||
export XDG_RUNTIME_DIR=/run/user/$(id -u)
|
||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||
systemctl --user stop bot
|
||||
|
|
@ -28,5 +30,5 @@ jobs:
|
|||
chmod +x ~/bot/bot
|
||||
mkdir -p ~/bot/fe
|
||||
rm -rf ~/bot/fe/*
|
||||
cp -r dist/* ~/bot/fe/
|
||||
cp -r frontend/dist/* ~/bot/fe/
|
||||
systemctl --user start bot
|
||||
Loading…
Add table
Add a link
Reference in a new issue