diff --git a/.forgejo/workflows/pipeline.yaml b/.forgejo/workflows/pipeline.yaml index 05cc487..7e579d8 100644 --- a/.forgejo/workflows/pipeline.yaml +++ b/.forgejo/workflows/pipeline.yaml @@ -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 \ No newline at end of file