Skip to content

Commit

Permalink
Merge pull request #9 from nealwp/release-workflow
Browse files Browse the repository at this point in the history
fix release workflow
  • Loading branch information
nealwp authored Jan 22, 2024
2 parents 3f4216c + 83bc17a commit 6d1bf22
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
File renamed without changes.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build Windows

on: [push]
on:
push:
branches:
- main

jobs:
build:
Expand All @@ -23,6 +26,6 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: disabilitydude.zip
name: disabilitydude
path: dist/*
retention-days: 5
10 changes: 10 additions & 0 deletions .github/workflows/installation.md
Original file line number Diff line number Diff line change
@@ -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

14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@ 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.zip
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
env:
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.zip
asset_name: disabilitydude.zip
asset_content_type: application/zip

0 comments on commit 6d1bf22

Please sign in to comment.