Fix release workflow

This commit is contained in:
Félix Saparelli 2022-01-19 00:20:23 +13:00
parent 7effd1a61e
commit 187c696d8f
1 changed files with 16 additions and 16 deletions

View File

@ -99,10 +99,10 @@ jobs:
key: ${{ runner.os }}-cargo-bin-${{ hashFiles('.github/workflows/release.yml') }} key: ${{ runner.os }}-cargo-bin-${{ hashFiles('.github/workflows/release.yml') }}
- name: Install cargo-deb - name: Install cargo-deb
if: startsWith(matrix.name, 'linux-') if: startsWith(matrix.name, 'linux-')
run: which cargo-deb || cargo install cargo-deb --version 1.30.0 --locked run: which cargo-deb || cargo install cargo-deb --version 1.34.2 --locked
# - name: Install cargo-generate-rpm - name: Install cargo-generate-rpm
# if: startsWith(matrix.name, 'linux-') if: startsWith(matrix.name, 'linux-')
# run: which cargo-generate-rpm || cargo install cargo-generate-rpm --version 0.4.0 --locked run: which cargo-generate-rpm || cargo install cargo-generate-rpm --version 0.6.0 --locked
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
@ -167,16 +167,16 @@ jobs:
version=$(cat VERSION) version=$(cat VERSION)
dst="watchexec-${version}-${{ matrix.target }}" dst="watchexec-${version}-${{ matrix.target }}"
cargo deb -p watchexec-cli --no-build --no-strip --target ${{ matrix.target }} --output "$dst.deb" cargo deb -p watchexec-cli --no-build --no-strip --target ${{ matrix.target }} --output "$dst.deb"
# - name: Archive (rpm) - name: Archive (rpm)
# if: startsWith(matrix.name, 'linux-') if: startsWith(matrix.name, 'linux-')
# shell: bash shell: bash
# run: | run: |
# set -euxo pipefail set -euxo pipefail
# shopt -s globstar shopt -s globstar
# version=$(cat VERSION) version=$(cat VERSION)
# dst="watchexec-${version}-${{ matrix.target }}" dst="watchexec-${version}-${{ matrix.target }}"
# cargo generate-rpm -p cli --target "${{ matrix.target }}" --target-dir "target/${{ matrix.target }}" cargo generate-rpm -p cli --target "${{ matrix.target }}" --target-dir "target/${{ matrix.target }}"
# mv target/**/*.rpm "$dst.rpm" mv target/**/*.rpm "$dst.rpm"
- name: Archive (zip) - name: Archive (zip)
if: startsWith(matrix.name, 'windows-') if: startsWith(matrix.name, 'windows-')
shell: bash shell: bash
@ -211,9 +211,9 @@ jobs:
key: sign-tools-${{ hashFiles('.github/workflows/release.yml') }} key: sign-tools-${{ hashFiles('.github/workflows/release.yml') }}
- name: Install rsign2 - name: Install rsign2
run: cargo install rsign2 --version 0.5.7 run: cargo install rsign2 --force --version 0.6.1
- name: Install b3sum - name: Install b3sum
run: cargo install b3sum --version 0.3.7 run: cargo install b3sum --force --version 1.3.0
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with: