Skip to content

Commit

Permalink
Add release action and stop building on each push
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldOfView committed Nov 25, 2023
1 parent 1b840ab commit d6b8fb0
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/build_executables.yaml

This file was deleted.

88 changes: 88 additions & 0 deletions .github/workflows/create_release_with_assets.yaml
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'

0 comments on commit d6b8fb0

Please sign in to comment.