Update build-binaries.yml

This commit is contained in:
Daniel Hougaard
2024-07-06 01:32:18 +02:00
parent 09d8822816
commit de57e1af35
+7 -2
View File
@@ -52,7 +52,12 @@ jobs:
run: npm run binary:build run: npm run binary:build
- name: Package into node binary - name: Package into node binary
run: pkg --no-bytecode --public-packages "*" --public --target ${{ matrix.target }}-${{ matrix.arch }} --output ./binary/infisical-standalone . run: |
if [ "${{ matrix.os }}" != "linux" ]; then
pkg --no-bytecode --public-packages "*" --public --target ${{ matrix.target }}-${{ matrix.arch }} --output ./binary/infisical-standalone-${{ matrix.os }}-${{ matrix.arch }} .
else
pkg --no-bytecode --public-packages "*" --public --target ${{ matrix.target }}-${{ matrix.arch }} --output ./binary/infisical-standalone .
fi
# Set up .deb package structure (Debian/Ubuntu only) # Set up .deb package structure (Debian/Ubuntu only)
- name: Set up .deb package structure - name: Set up .deb package structure
@@ -96,4 +101,4 @@ jobs:
- name: Publish to Cloudsmith (Windows) - name: Publish to Cloudsmith (Windows)
if: matrix.os == 'win' if: matrix.os == 'win'
working-directory: ./backend working-directory: ./backend
run: cloudsmith push raw infisical/infisical-standalone ./binary/infisical-${{ matrix.os }}-${{ matrix.arch }}.exe --republish --no-wait-for-sync --version 3.0.0 --api-key ${{ secrets.CLOUDSMITH_API_KEY }} run: cloudsmith push raw infisical/infisical-standalone ./binary/infisical-standalone-${{ matrix.os }}-${{ matrix.arch }}.exe --republish --no-wait-for-sync --version 3.0.0 --api-key ${{ secrets.CLOUDSMITH_API_KEY }}