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