Skip to content

Commit

Permalink
Merge pull request #8 from nealwp/hello-2024
Browse files Browse the repository at this point in the history
Refactor and New Export Format
  • Loading branch information
nealwp committed Jan 22, 2024
2 parents 7ba5935 + 6441941 commit 3f4216c
Show file tree
Hide file tree
Showing 28 changed files with 1,308 additions and 1,428 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build-deploy.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build Windows

on: [push]

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r requirements.txt

- name: Build Executable
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
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Attach Artifacts to Release

on:
release:
types: [created]

jobs:

build-release-artifacts:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r requirements.txt

- name: Build Executable
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: 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_content_type: application/zip
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ build
lib/*
*.json
files
*.drawio*
*.drawio*
.venv
Loading

0 comments on commit 3f4216c

Please sign in to comment.