|
| 1 | +name: "Create release" |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + tags: |
| 6 | + - "v*" |
| 7 | + |
| 8 | +jobs: |
| 9 | + pyinstaller-build-windows: |
| 10 | + runs-on: windows-latest |
| 11 | + permissions: write-all |
| 12 | + steps: |
| 13 | + - name: Create executable |
| 14 | + id: create_executable |
| 15 | + uses: sayyid5416/pyinstaller@v1 |
| 16 | + with: |
| 17 | + spec: 'wledvideo.spec' |
| 18 | + requirements: 'requirements.txt' |
| 19 | + upload_exe_with_name: 'WLED-video for Windows (x64)' |
| 20 | + |
| 21 | + - name: Archive executable |
| 22 | + id: create_archive |
| 23 | + uses: thedoctor0/zip-release@0.7.5 |
| 24 | + with: |
| 25 | + type: 'zip' |
| 26 | + filename: 'WLED-video_Windows-x64.zip' |
| 27 | + path: ${{ steps.create_executable.outputs.executable_path }}/wledvideo |
| 28 | + |
| 29 | + - name: Create release |
| 30 | + uses: ncipollo/release-action@v1 |
| 31 | + with: |
| 32 | + prerelease: true |
| 33 | + generateReleaseNotes: true |
| 34 | + allowUpdates: true |
| 35 | + artifacts: 'WLED-video_Windows-x64.zip' |
| 36 | + |
| 37 | + pyinstaller-build-macos: |
| 38 | + runs-on: macos-latest |
| 39 | + permissions: write-all |
| 40 | + steps: |
| 41 | + - name: Create executable |
| 42 | + id: create_executable |
| 43 | + uses: sayyid5416/pyinstaller@v1 |
| 44 | + with: |
| 45 | + spec: 'wledvideo.spec' |
| 46 | + requirements: 'requirements.txt' |
| 47 | + upload_exe_with_name: 'WLED-video for Mac OS (x64)' |
| 48 | + |
| 49 | + - name: Archive executable |
| 50 | + id: create_archive |
| 51 | + uses: thedoctor0/zip-release@0.7.5 |
| 52 | + with: |
| 53 | + type: 'zip' |
| 54 | + filename: 'WLED-video_MacOS-x64.zip' |
| 55 | + path: ${{ steps.create_executable.outputs.executable_path }}/wledvideo |
| 56 | + |
| 57 | + - name: Create release |
| 58 | + uses: ncipollo/release-action@v1 |
| 59 | + with: |
| 60 | + allowUpdates: true |
| 61 | + prerelease: true |
| 62 | + generateReleaseNotes: false |
| 63 | + artifacts: 'WLED-video_MacOS-x64.zip' |
| 64 | + |
| 65 | + pyinstaller-build-linux: |
| 66 | + runs-on: ubuntu-latest |
| 67 | + permissions: write-all |
| 68 | + steps: |
| 69 | + - name: Create executable |
| 70 | + id: create_executable |
| 71 | + uses: sayyid5416/pyinstaller@v1 |
| 72 | + with: |
| 73 | + spec: 'wledvideo.spec' |
| 74 | + requirements: 'requirements.txt' |
| 75 | + upload_exe_with_name: 'WLED-video for Linux (x64)' |
| 76 | + |
| 77 | + - name: Archive executable |
| 78 | + id: create_archive |
| 79 | + uses: thedoctor0/zip-release@0.7.5 |
| 80 | + with: |
| 81 | + type: 'zip' |
| 82 | + filename: 'WLED-video_Linux-x64.zip' |
| 83 | + path: ${{ steps.create_executable.outputs.executable_path }}/wledvideo |
| 84 | + |
| 85 | + - name: Create release |
| 86 | + uses: ncipollo/release-action@v1 |
| 87 | + with: |
| 88 | + allowUpdates: true |
| 89 | + prerelease: true |
| 90 | + generateReleaseNotes: false |
| 91 | + artifacts: 'WLED-video_Linux-x64.zip' |
0 commit comments