Skip to content

Commit

Permalink
build: fix release workflow syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyscot committed Nov 2, 2024
1 parent 0d3ab56 commit 294bac3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

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

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

0 comments on commit 294bac3

Please sign in to comment.