diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1f4f306..eace623 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -31,22 +31,13 @@ jobs: python -m pytest -q npm --prefix frontend test -- --run npm --prefix frontend run build - python -m pip wheel --no-deps --wheel-dir dist . sh -n deploy/systemd-install.sh sh -n deploy/repo-upgrade.sh - - uses: actions/upload-artifact@v4 - with: - name: importarr-wheel - path: dist/*.whl deploy: needs: test runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v4 - with: - name: importarr-wheel - path: dist - name: Configure deployment SSH shell: bash env: @@ -65,14 +56,9 @@ jobs: DEPLOY_USER: ${{ secrets.IMPORTARR_DEPLOY_USER }} DEPLOY_SHA: ${{ github.sha }} run: | - WHEEL=$(find dist -maxdepth 1 -name 'importarr-*.whl' -print -quit) - test -n "$WHEEL" - scp -P "$DEPLOY_PORT" -o BatchMode=yes "$WHEEL" "$DEPLOY_USER@$DEPLOY_HOST:/tmp/importarr-deploy.whl" ssh -p "$DEPLOY_PORT" -o BatchMode=yes "$DEPLOY_USER@$DEPLOY_HOST" \ - "deploy_status=0; sudo -n /bin/sh -c 'set -eu; cd /opt/importarr/repo; + "sudo -n /bin/sh -c 'set -eu; cd /opt/importarr/repo; test -z \"\$(git status --porcelain)\"; git fetch --prune origin main; git checkout --detach $DEPLOY_SHA; - /bin/sh deploy/repo-upgrade.sh /tmp/importarr-deploy.whl $DEPLOY_SHA' || deploy_status=\$?; - rm -f /tmp/importarr-deploy.whl; - exit \$deploy_status" + /bin/sh deploy/repo-upgrade.sh \"\" $DEPLOY_SHA'" diff --git a/frontend/src/main.jsx b/frontend/src/main.jsx index 1b1bd76..df4db30 100644 --- a/frontend/src/main.jsx +++ b/frontend/src/main.jsx @@ -23,7 +23,7 @@ export const pollDelay = failures => failures ? Math.min(5000,1000*2**(failures- function Modal({ trigger, title, children }) { return ; } function Field({ label, ...props }) { return ; } -export function BuildSummary({ build }) { return
{build?`Build ${build.git_sha} · ${build.build_date}`:"Build information unavailable"}
; } +export function BuildSummary() { return null; } export function SettingsDialog({ status, refresh }) { const [result,setResult]=useState({}); diff --git a/frontend/src/main.test.jsx b/frontend/src/main.test.jsx index 51e0a49..ecca67c 100644 --- a/frontend/src/main.test.jsx +++ b/frontend/src/main.test.jsx @@ -39,8 +39,8 @@ describe("Importarr UI behavior", () => { expect([pollDelay(0),pollDelay(1),pollDelay(2),pollDelay(4)]).toEqual([300,1000,2000,5000]); }); - it("shows the build commit and date in the header summary", () => { + it("hides the build commit and date from the header summary", () => { render(