Skip to content

Commit 4a229b8

Browse files
author
Sierra Nevada
committed
ci: return back to versioning
1 parent 2d17192 commit 4a229b8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959
- name: Build executable (Linux)
6060
if: matrix.os == 'ubuntu-latest'
6161
run: |
62-
pyinstaller --onefile --windowed --name SourceBox --icon=assets/images/sourcebox.png --add-data "assets:assets" --exclude-module pkg_resources --exclude-module setuptools --exclude-module numpy --exclude-module pandas --exclude-module matplotlib --hidden-import=OpenGL.platform.glx --hidden-import=OpenGL.arrays.vbo --collect-all OpenGL --noupx --clean Sourcebox.py
63-
62+
pyinstaller --onefile --windowed --name SourceBox --icon=assets/images/sourcebox.png --add-data "assets:assets" --exclude-module pkg_resources --exclude-module setuptools --exclude-module numpy --exclude-module pandas --exclude-module matplotlib --hidden-import=OpenGL.platform.glx --hidden-import=OpenGL.arrays.vbo --collect-all OpenGL --noupx --clean Sourcebox.py
63+
6464
- name: Upload artifact
6565
uses: actions/upload-artifact@v4
6666
with:
@@ -69,13 +69,9 @@ jobs:
6969

7070
- name: Upload to Release
7171
uses: softprops/action-gh-release@v1
72-
if: |
73-
startsWith(github.ref, 'refs/tags/') ||
74-
(github.event_name == 'push' && github.ref == 'refs/heads/main')
72+
# ONLY release when a version tag is pushed
73+
if: startsWith(github.ref, 'refs/tags/v')
7574
with:
7675
files: dist/${{ matrix.output_name }}
77-
tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'latest' }}
78-
draft: false
79-
prerelease: false
8076
env:
8177
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)