mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
refactor(ci): replace inline conditionals with if-else in build.yml
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -77,7 +77,12 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
|
|
||||||
- name: Build Release Files
|
- name: Build Release Files
|
||||||
run: ${{ matrix.package == 'deb' && 'npm run build:deb -- --${{ matrix.architecture }}' || matrix.package == 'rpm' && 'npm run build:rpm -- --${{ matrix.architecture }}' }}
|
run: |
|
||||||
|
if [ "${{ matrix.package }}" == "deb" ]; then
|
||||||
|
npm run build:deb -- --${{ matrix.architecture }}
|
||||||
|
elif [ "${{ matrix.package }}" == "rpm" ]; then
|
||||||
|
npm run build:rpm -- --${{ matrix.architecture }}
|
||||||
|
fi
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user