Skip to content

Commit a06830a

Browse files
improve build action
1 parent 9b6f5e7 commit a06830a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/windows_build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create Windows Executable using Conda
1+
name: Create Windows Executable using Miniconda
22

33
on:
44
push:
@@ -27,8 +27,10 @@ jobs:
2727
- shell: bash -l {0}
2828
run: |
2929
conda info
30-
conda list
3130
conda env export
31+
- name: Get Version
32+
id: get_version
33+
uses: battila7/get-version-action@v2
3234
- name: Build
3335
shell: bash -l {0}
3436
run: |
@@ -37,15 +39,15 @@ jobs:
3739
with:
3840
files: dist/funscript-editor
3941
recursive: true
40-
dest: funscript-editor.zip
42+
dest: funscript-editor_${{ steps.get_version.outputs.version }}.zip
4143
- name: Create Release
4244
id: create_release
4345
uses: actions/create-release@v1
4446
env:
4547
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4648
with:
47-
tag_name: ${{ github.ref }}
48-
release_name: ${{ github.sha }}
49+
tag_name: ${{ steps.get_version.outputs.version }}
50+
release_name: Python funscript Editor ${{ steps.get_version.outputs.version }}
4951
draft: true
5052
prerelease: true
5153
- name: Upload Release Asset
@@ -55,6 +57,6 @@ jobs:
5557
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5658
with:
5759
upload_url: ${{ steps.create_release.outputs.upload_url }}
58-
asset_path: ./funscript-editor.zip
59-
asset_name: funscript-editor.zip
60+
asset_path: ./funscript-editor_${{ steps.get_version.outputs.version }}.zip
61+
asset_name: funscript-editor_${{ steps.get_version.outputs.version }}.zip
6062
asset_content_type: application/zip

0 commit comments

Comments
 (0)