From 3bc9993d5eb9de5c589f4f0de30cfded1d1166c8 Mon Sep 17 00:00:00 2001 From: Preston Neal Date: Sun, 21 Jan 2024 19:30:58 -0800 Subject: [PATCH 1/5] release workflow --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d7212a..5f249a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@v4 with: - name: disabilitydude.zip + name: disabilitydude path: dist/* retention-days: 5 @@ -36,6 +36,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: ./dist/disabilitydude.zip - asset_name: disabilitydude.zip + asset_path: ./disabilitydude + asset_name: disabilitydude asset_content_type: application/zip From 9cc1c382029e46cccd2d1c69ef64d5e2f1fed063 Mon Sep 17 00:00:00 2001 From: Preston Neal Date: Sun, 21 Jan 2024 19:43:42 -0800 Subject: [PATCH 2/5] trying again --- .github/workflows/release.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f249a3..5221517 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,12 +23,10 @@ jobs: run: | pyinstaller --paths=. --name 'disabilitydude' --noconfirm --onedir --windowed --distpath ".\dist" --add-data "./config;config/" "./src/main.py" - - name: Upload Artifact - uses: actions/upload-artifact@v4 - with: - name: disabilitydude - path: dist/* - retention-days: 5 + - name: Package Artifact + run: | + $ProgressPreference = 'SilentlyContinue' + Compress-Archive -Path .\dist\disabilitydude -Destination ".\disabilitydude.zip" -Force - name: Upload Release Asset uses: actions/upload-release-asset@v1 @@ -36,6 +34,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: ./disabilitydude - asset_name: disabilitydude + asset_path: ./disabilitydude.zip + asset_name: disabilitydude.zip asset_content_type: application/zip From dbff19c2ef8f0804fb92d30bd8d7f64ba8e5c6bd Mon Sep 17 00:00:00 2001 From: Preston Neal Date: Sun, 21 Jan 2024 20:03:00 -0800 Subject: [PATCH 3/5] only build on push to main --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6bf752..e99528a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,9 @@ name: Build Windows -on: [push] +on: + push: + branches: + - main jobs: build: @@ -23,6 +26,6 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@v4 with: - name: disabilitydude.zip + name: disabilitydude path: dist/* retention-days: 5 From 9c1b2e1800e0174d771c4942d9cbbaa20ed666a7 Mon Sep 17 00:00:00 2001 From: Preston Neal Date: Sun, 21 Jan 2024 20:04:26 -0800 Subject: [PATCH 4/5] delete scripts folder --- {scripts => .github}/build.ps1 | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {scripts => .github}/build.ps1 (100%) diff --git a/scripts/build.ps1 b/.github/build.ps1 similarity index 100% rename from scripts/build.ps1 rename to .github/build.ps1 From 83bc17aa1ca7b9273395e362880de229e0ba79e5 Mon Sep 17 00:00:00 2001 From: Preston Neal Date: Sun, 21 Jan 2024 20:14:50 -0800 Subject: [PATCH 5/5] add install notes --- .github/workflows/installation.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/installation.md diff --git a/.github/workflows/installation.md b/.github/workflows/installation.md new file mode 100644 index 0000000..3104433 --- /dev/null +++ b/.github/workflows/installation.md @@ -0,0 +1,10 @@ +## Install + +### Windows + +#### Zip + +1. Download **disabilitydude.zip** +2. Extract the zip +3. Double-click `disabilitydude.exe` from extracted files to run +