Skip to content

Commit 3f4216c

Browse files
authored
Merge pull request #8 from nealwp/hello-2024
Refactor and New Export Format
2 parents 7ba5935 + 6441941 commit 3f4216c

28 files changed

+1308
-1428
lines changed

.github/workflows/build-deploy.yml

-24
This file was deleted.

.github/workflows/build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build Windows
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.10'
16+
cache: 'pip'
17+
- run: pip install -r requirements.txt
18+
19+
- name: Build Executable
20+
run: |
21+
pyinstaller --paths=. --name 'disabilitydude' --noconfirm --onedir --windowed --distpath ".\dist" --add-data "./config;config/" "./src/main.py"
22+
23+
- name: Upload Artifact
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: disabilitydude.zip
27+
path: dist/*
28+
retention-days: 5

.github/workflows/release.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Attach Artifacts to Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
9+
build-release-artifacts:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.10'
19+
cache: 'pip'
20+
- run: pip install -r requirements.txt
21+
22+
- name: Build Executable
23+
run: |
24+
pyinstaller --paths=. --name 'disabilitydude' --noconfirm --onedir --windowed --distpath ".\dist" --add-data "./config;config/" "./src/main.py"
25+
26+
- name: Upload Artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: disabilitydude.zip
30+
path: dist/*
31+
retention-days: 5
32+
33+
- name: Upload Release Asset
34+
uses: actions/upload-release-asset@v1
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
upload_url: ${{ github.event.release.upload_url }}
39+
asset_path: ./dist/disabilitydude.zip
40+
asset_name: disabilitydude.zip
41+
asset_content_type: application/zip

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ build
1212
lib/*
1313
*.json
1414
files
15-
*.drawio*
15+
*.drawio*
16+
.venv

0 commit comments

Comments
 (0)