Skip to content

Commit 3245067

Browse files
committed
Include alias in same run
1 parent 6d8ee0d commit 3245067

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,25 @@ jobs:
8585
distribution: temurin
8686
java-version: '8'
8787

88-
- run: |
89-
shopt -s expand_aliases
90-
alias dpkg-deb='dpkg-deb -Zgzip'
91-
if: ${{ matrix.name == 'Linux' }}
92-
9388
- run: yarn install --immutable --immutable-cache --check-cache
9489

9590
- run: yarn gulp release ${{ matrix.releaseArgs }}
96-
if: ${{ !inputs.debug_build && matrix.name != 'Android' }}
91+
if: ${{ !inputs.debug_build && contains(fromJson('["MacOS", "Windows"]'), matrix.name) }}
9792

9893
- run: yarn gulp debug-release ${{ matrix.releaseArgs }}
99-
if: ${{ inputs.debug_build || matrix.name == 'Android' }}
94+
if: ${{ inputs.debug_build && contains(fromJson('["Android", "MacOS", "Windows"]'), matrix.name) }}
95+
96+
- run: |
97+
shopt -s expand_aliases
98+
alias dpkg-deb='dpkg-deb -Zgzip'
99+
yarn gulp release ${{ matrix.releaseArgs }}
100+
if: ${{ !inputs.debug_build && matrix.name == 'Linux' }}
101+
102+
- run: |
103+
shopt -s expand_aliases
104+
alias dpkg-deb='dpkg-deb -Zgzip'
105+
yarn gulp debug-release ${{ matrix.releaseArgs }}
106+
if: ${{ inputs.debug_build && matrix.name == 'Linux' }}
100107
101108
- name: Publish build artifacts
102109
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)