Skip to content

Commit

Permalink
chore(build): fix autopublish of Debian packages
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyscot committed Nov 2, 2024
1 parent 6b176c9 commit f263a27
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

env:
CARGO_TERM_COLOR: always
WORKFLOW_TEST: ${{ github.event_name == 'workflow_dispatch' }}

permissions:
contents: write
Expand Down Expand Up @@ -58,7 +57,7 @@ jobs:
leading-dir: true
tar: unix
zip: windows
dry_run: ${{ env.WORKFLOW_TEST }}
dry_run: ${{ github.event_name != 'release' }}
- name: Make deb package
if: ${{ matrix.build_deb }}
run: scripts/make-debian-package --release ${{ matrix.target }}
Expand All @@ -74,7 +73,7 @@ jobs:
name: qcp-deb-${{ matrix.target }}
path: target/**/debian/qcp*.deb
- name: Publish deb package to release
if: ${{ ! env.WORKFLOW_TEST }}
if: ${{ github.event_name == 'release' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.ref }} ${{ env.BUILT_DEB_FILE }}

0 comments on commit f263a27

Please sign in to comment.