Skip to content

Commit 6d1bf22

Browse files
authored
Merge pull request #9 from nealwp/release-workflow
fix release workflow
2 parents 3f4216c + 83bc17a commit 6d1bf22

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed
File renamed without changes.

.github/workflows/build.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Build Windows
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- main
47

58
jobs:
69
build:
@@ -23,6 +26,6 @@ jobs:
2326
- name: Upload Artifact
2427
uses: actions/upload-artifact@v4
2528
with:
26-
name: disabilitydude.zip
29+
name: disabilitydude
2730
path: dist/*
2831
retention-days: 5

.github/workflows/installation.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Install
2+
3+
### Windows
4+
5+
#### Zip
6+
7+
1. Download **disabilitydude.zip**
8+
2. Extract the zip
9+
3. Double-click `disabilitydude.exe` from extracted files to run
10+

.github/workflows/release.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,17 @@ jobs:
2323
run: |
2424
pyinstaller --paths=. --name 'disabilitydude' --noconfirm --onedir --windowed --distpath ".\dist" --add-data "./config;config/" "./src/main.py"
2525
26-
- name: Upload Artifact
27-
uses: actions/upload-artifact@v4
28-
with:
29-
name: disabilitydude.zip
30-
path: dist/*
31-
retention-days: 5
26+
- name: Package Artifact
27+
run: |
28+
$ProgressPreference = 'SilentlyContinue'
29+
Compress-Archive -Path .\dist\disabilitydude -Destination ".\disabilitydude.zip" -Force
3230
3331
- name: Upload Release Asset
3432
uses: actions/upload-release-asset@v1
3533
env:
3634
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3735
with:
3836
upload_url: ${{ github.event.release.upload_url }}
39-
asset_path: ./dist/disabilitydude.zip
40-
asset_name: disabilitydude.zip
37+
asset_path: ./disabilitydude.zip
38+
asset_name: disabilitydude.zip
4139
asset_content_type: application/zip

0 commit comments

Comments
 (0)