Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ jobs:
- name: Build packages
if: ${{ !endsWith(matrix.target, '-musl') }}
run: |
# target/ is cached; discard packages from previous versions.
rm -f target/${{ matrix.target }}/release/privaxy_*.deb \
target/${{ matrix.target }}/release/privaxy-*.rpm
cargo install cargo-deb && cargo deb -p privaxy --target ${{ matrix.target }} -o target/${{ matrix.target }}/release
cargo install cargo-generate-rpm && cargo generate-rpm -p privaxy --target ${{ matrix.target }} -o target/${{ matrix.target }}/release
- uses: actions/upload-artifact@v4
Expand All @@ -366,7 +369,7 @@ jobs:
if: ${{ !endsWith(matrix.target, '-musl') }}
with:
name: privaxy-rpm-${{ matrix.target }}
path: target/${{ matrix.target }}/release/*.rpm
path: target/${{ matrix.target }}/release/privaxy-*.rpm
- uses: actions/upload-artifact@v4
with:
name: privaxy-${{ matrix.target }}
Expand Down Expand Up @@ -432,6 +435,9 @@ jobs:
- name: Build packages
if: ${{ endsWith(matrix.target, '-linux-gnu') }}
run: |
# target/ is cached; discard packages from previous versions.
rm -f target/${{ matrix.target }}/release/privaxy_*.deb \
target/${{ matrix.target }}/release/privaxy-*.rpm
variant=$(echo "${{ matrix.target }}" | cut -d- -f1)
cargo install cargo-deb && cargo deb --no-build --no-strip --variant "$variant" -p privaxy --target ${{ matrix.target }} -o target/${{ matrix.target }}/release
cargo install cargo-generate-rpm && cargo generate-rpm -p privaxy --target ${{ matrix.target }} -o target/${{ matrix.target }}/release
Expand All @@ -446,7 +452,7 @@ jobs:
if: ${{ endsWith(matrix.target, '-linux-gnu') }}
with:
name: privaxy-rpm-${{ matrix.target }}
path: target/${{ matrix.target }}/release/*.rpm
path: target/${{ matrix.target }}/release/privaxy-*.rpm

- uses: actions/upload-artifact@v4
with:
Expand All @@ -462,6 +468,9 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout release notes
uses: actions/checkout@v6

- name: Download all artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -485,6 +494,7 @@ jobs:
- name: Create release
uses: softprops/action-gh-release@v2
with:
body_path: RELEASE.md
files: ./release-assets/*
generate_release_notes: true
fail_on_unmatched_files: true
fail_on_unmatched_files: true
Loading