diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index b3c9abad..06aac13e 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -64,13 +64,6 @@ jobs: name: archivebox-${{ steps.version.outputs.version }}-${{ matrix.arch }}.deb path: dist/*.deb - - name: Upload .deb to GitHub Release - if: github.event_name == 'release' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh release upload "${{ github.event.release.tag_name }}" dist/*.deb --clobber - test: needs: build runs-on: ubuntu-24.04 @@ -157,3 +150,24 @@ jobs: run: | test -f /usr/lib/systemd/system/archivebox.service cat /usr/lib/systemd/system/archivebox.service + + # Upload .deb to GitHub Release only after tests pass + release: + if: github.event_name == 'release' || github.event_name == 'workflow_call' + needs: [build, test] + runs-on: ubuntu-24.04 + permissions: + contents: write + + steps: + - name: Download all .deb artifacts + uses: actions/download-artifact@v4 + with: + pattern: archivebox-*.deb + merge-multiple: true + + - name: Upload .deb to GitHub Release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload "${{ github.event.release.tag_name }}" *.deb --clobber diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml index 838b323b..ca475917 100644 --- a/.github/workflows/homebrew.yml +++ b/.github/workflows/homebrew.yml @@ -171,7 +171,7 @@ RUBY # On release only: generate the real formula with PyPI URL and push to tap release: - if: github.event_name == 'release' + if: github.event_name == 'release' || github.event_name == 'workflow_call' needs: build-and-test runs-on: macos-latest diff --git a/README.md b/README.md index 66b9126f..0d58f7f9 100644 --- a/README.md +++ b/README.md @@ -297,14 +297,15 @@ See below for more usage examples using the C
.deb package from the latest release.
# download the .deb for your architecture (amd64 or arm64)
-curl -fsSL "https://github.com/ArchiveBox/ArchiveBox/releases/latest/download/archivebox_amd64.deb" -o /tmp/archivebox.deb
+ARCH="$(dpkg --print-architecture)"
+curl -fsSL "https://github.com/ArchiveBox/ArchiveBox/releases/latest/download/archivebox_${ARCH}.deb" -o /tmp/archivebox.deb
sudo apt install /tmp/archivebox.deb
archivebox version # make sure all dependencies are installed
mkdir -p ~/archivebox/data && cd ~/archivebox/data
-archivebox init --setup
+archivebox init