Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefbaranec authored Mar 21, 2024
1 parent 11e28be commit 62afd1b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
- name: Build binary
run: pyinstaller src/lang_detect.py
- name: Zip the dist folder
run: zip -r lang-detect-${{ needs.prepare.outputs.short_sha }}-linux-x86_64.zip dist/
run: zip -r lang-detect_${{ needs.prepare.outputs.short_sha }}_linux-x86_64.zip dist/
- name: Upload ZIP to FTP
run: |
curl -T lang-detect-${{ needs.prepare.outputs.short_sha }}-linux-x86_64.zip ftp://dev.linux.build.pdfix.net/public/builds/plug-ins/lang-detect/main/${{ needs.prepare.outputs.short_sha }}/ --user "${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }}" --ftp-create-dirs
curl -T lang-detect_${{ needs.prepare.outputs.short_sha }}_linux-x86_64.zip ftp://dev.linux.build.pdfix.net/public/builds/plug-ins/lang-detect/main/${{ needs.prepare.outputs.short_sha }}/ --user "${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }}" --ftp-create-dirs
build-windows:
runs-on: windows-latest
Expand All @@ -53,10 +53,10 @@ jobs:
- name: Build binary
run: pyinstaller src/lang_detect.py
- name: Zip the dist folder
run: Compress-Archive -Path dist/* -DestinationPath lang-detect-${{ needs.prepare.outputs.short_sha }}-windows-x86_64.zip
run: Compress-Archive -Path dist/* -DestinationPath lang-detect_${{ needs.prepare.outputs.short_sha }}_windows-x86_64.zip
- name: Upload ZIP to FTP
run: |
curl -T lang-detect-${{ needs.prepare.outputs.short_sha }}-windows-x86_64.zip ftp://dev.linux.build.pdfix.net/public/builds/plug-ins/lang-detect/main/${{ needs.prepare.outputs.short_sha }}/ --user "${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }}" --ftp-create-dirs
curl -T lang-detect_${{ needs.prepare.outputs.short_sha }}_windows-x86_64.zip ftp://dev.linux.build.pdfix.net/public/builds/plug-ins/lang-detect/main/${{ needs.prepare.outputs.short_sha }}/ --user "${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }}" --ftp-create-dirs
build-macos-arm64:
Expand All @@ -73,11 +73,11 @@ jobs:
- name: Build ARM64 binary
run: pyinstaller --target-architecture=arm64 src/lang_detect.py
- name: Zip the dist folder
run: zip -r lang-detect-${{ needs.prepare.outputs.short_sha }}-mac-arm64.zip dist/
run: zip -r lang-detect_${{ needs.prepare.outputs.short_sha }}_mac-arm64.zip dist/
- name: Upload ZIP to FTP
shell: bash
run: |
curl -T lang-detect-${{ needs.prepare.outputs.short_sha }}-mac-arm64.zip ftp://dev.linux.build.pdfix.net/public/builds/plug-ins/lang-detect/main/${{ needs.prepare.outputs.short_sha }}/ --user "${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }}" --ftp-create-dirs
curl -T lang-detect_${{ needs.prepare.outputs.short_sha }}_mac-arm64.zip ftp://dev.linux.build.pdfix.net/public/builds/plug-ins/lang-detect/main/${{ needs.prepare.outputs.short_sha }}/ --user "${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }}" --ftp-create-dirs
build-macos-x86_64:
runs-on: macos-latest
Expand All @@ -93,7 +93,7 @@ jobs:
- name: Build x86_64 binary
run: pyinstaller --target-architecture=x86_64 src/lang_detect.py
- name: Zip the dist folder
run: zip -r lang-detect-${{ needs.prepare.outputs.short_sha }}-mac-x86_64.zip dist/
run: zip -r lang-detect_${{ needs.prepare.outputs.short_sha }}_mac-x86_64.zip dist/
- name: Upload ZIP to FTP
run: |
curl -T lang-detect-${{ needs.prepare.outputs.short_sha }}-mac-x86_64.zip ftp://dev.linux.build.pdfix.net/public/builds/plug-ins/lang-detect/main/${{ needs.prepare.outputs.short_sha }}/ --user "${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }}" --ftp-create-dirs
curl -T lang-detect_${{ needs.prepare.outputs.short_sha }}_mac-x86_64.zip ftp://dev.linux.build.pdfix.net/public/builds/plug-ins/lang-detect/main/${{ needs.prepare.outputs.short_sha }}/ --user "${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }}" --ftp-create-dirs

0 comments on commit 62afd1b

Please sign in to comment.