Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/python-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
python-version:
type: string
default: "3.9"
runner:
type: string
default: ubuntu-latest
run:
required: true
type: string
Expand All @@ -20,7 +23,10 @@ on:

jobs:
run:
runs-on: ubuntu-latest
runs-on: ${{ inputs.runner }}
defaults:
run:
shell: bash
steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand All @@ -41,6 +47,8 @@ jobs:
- name: Run Command
run: |
${{ inputs.run }}
env:
GH_TOKEN: ${{ github.token }}

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand All @@ -49,4 +57,3 @@ jobs:
name: ${{ inputs.artifact }}
path: ${{ inputs.artifact_path }}
if-no-files-found: ignore

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

on:
push:
branches:
- main
jobs:
windows-release:
uses: ./.github/workflows/python-job.yml
secrets: inherit
with:
runner: windows-latest
python-version: "3.9"
run: |
pyinstaller --onefile --exclude demo dk-installer.py
export RELEASE_TAG=latest
gh release delete "${RELEASE_TAG}" -y || true
git push origin --delete "${RELEASE_TAG}" || true
git tag "${RELEASE_TAG}"
git push origin "${RELEASE_TAG}"
gh release create "${RELEASE_TAG}" ./dist/dk-installer.exe \
--title "Latest Release"