Skip to content

Commit 9ec7148

Browse files
author
opencode
committed
Rewrite workflow file with correct YAML syntax
1 parent f416fd3 commit 9ec7148

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Release
33
on:
44
push:
55
tags:
6-
- v*
6+
- 'v*'
77

88
jobs:
99
build-windows:
@@ -50,42 +50,42 @@ jobs:
5050
name: Voice2Text-macOS
5151
path: dist/Voice2Text
5252

53-
build-linux:
54-
runs-on: ubuntu-latest
55-
steps:
56-
- uses: actions/checkout@v4
57-
- name: Set up Python
58-
uses: actions/setup-python@v4
59-
with:
60-
python-version: '3.8'
61-
- name: Install PortAudio
62-
run: sudo apt-get update && sudo apt-get install -y portaudio19-dev xvfb
63-
- name: Install dependencies
64-
run: |
65-
python -m pip install --upgrade pip
66-
pip install -r requirements.txt
67-
pip install pyinstaller
68-
- name: Build executable
69-
run: xvfb-run pyinstaller voice_app.spec
70-
- name: Upload artifact
71-
uses: actions/upload-artifact@v4
72-
with:
73-
name: Voice2Text-Linux
74-
path: dist/Voice2Text
53+
build-linux:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v4
57+
- name: Set up Python
58+
uses: actions/setup-python@v4
59+
with:
60+
python-version: '3.8'
61+
- name: Install PortAudio
62+
run: sudo apt-get update && sudo apt-get install -y portaudio19-dev xvfb
63+
- name: Install dependencies
64+
run: |
65+
python -m pip install --upgrade pip
66+
pip install -r requirements.txt
67+
pip install pyinstaller
68+
- name: Build executable
69+
run: xvfb-run pyinstaller voice_app.spec
70+
- name: Upload artifact
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: Voice2Text-Linux
74+
path: dist/Voice2Text
7575

76-
release:
77-
needs: [build-windows, build-macos, build-linux]
78-
runs-on: ubuntu-latest
79-
steps:
80-
- name: Download artifacts
81-
uses: actions/download-artifact@v4
82-
- name: Create Release
83-
uses: softprops/action-gh-release@v2
84-
env:
85-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86-
with:
87-
files: |
88-
Voice2Text-Windows/Voice2Text.exe
89-
Voice2Text-macOS/Voice2Text
90-
draft: false
91-
prerelease: false
76+
release:
77+
needs: [build-windows, build-macos, build-linux]
78+
runs-on: ubuntu-latest
79+
steps:
80+
- name: Download artifacts
81+
uses: actions/download-artifact@v4
82+
- name: Create Release
83+
uses: softprops/action-gh-release@v2
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
with:
87+
files: |
88+
Voice2Text-Windows/Voice2Text.exe
89+
Voice2Text-macOS/Voice2Text
90+
draft: false
91+
prerelease: false

0 commit comments

Comments
 (0)