-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release action and stop building on each push
- Loading branch information
1 parent
1b840ab
commit d6b8fb0
Showing
2 changed files
with
88 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: "Create release" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
pyinstaller-build-windows: | ||
runs-on: windows-latest | ||
permissions: write-all | ||
steps: | ||
- name: Create executable | ||
id: create_executable | ||
uses: sayyid5416/pyinstaller@v1 | ||
with: | ||
spec: 'wledvideo.spec' | ||
requirements: 'requirements.txt' | ||
upload_exe_with_name: 'WLED-video for Windows (x64)' | ||
|
||
- name: Archive executable | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'WLED-video for Windows (x64).zip' | ||
path: ${{ steps.create_executable.outputs.executable_path }} | ||
|
||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
prerelease: true | ||
generateReleaseNotes: true | ||
allowUpdates: true | ||
artifacts: 'WLED-video for Windows (x64).zip' | ||
|
||
pyinstaller-build-macos: | ||
runs-on: macos-latest | ||
permissions: write-all | ||
steps: | ||
- name: Create executable | ||
id: create_executable | ||
uses: sayyid5416/pyinstaller@v1 | ||
with: | ||
spec: 'wledvideo.spec' | ||
requirements: 'requirements.txt' | ||
upload_exe_with_name: 'WLED-video for Mac OS (x64)' | ||
|
||
- name: Archive executable | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'WLED-video for Mac OS (x64).zip' | ||
path: ${{ steps.create_executable.outputs.executable_path }} | ||
|
||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
prerelease: true | ||
generateReleaseNotes: false | ||
artifacts: 'WLED-video for Mac OS (x64).zip' | ||
|
||
pyinstaller-build-linux: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
steps: | ||
- name: Create executable | ||
id: create_executable | ||
uses: sayyid5416/pyinstaller@v1 | ||
with: | ||
spec: 'wledvideo.spec' | ||
requirements: 'requirements.txt' | ||
upload_exe_with_name: 'WLED-video for Linux (x64)' | ||
|
||
- name: Archive executable | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'WLED-video for Linux (x64).zip' | ||
path: ${{ steps.create_executable.outputs.executable_path }} | ||
|
||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
prerelease: true | ||
generateReleaseNotes: false | ||
artifacts: 'WLED-video for Linux (x64).zip' |