aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pack.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml
new file mode 100644
index 00000000..26ee2f45
--- /dev/null
+++ b/.github/workflows/pack.yml
@@ -0,0 +1,34 @@
+name: Build Windows Executable
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.9
+
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Install dependencies
+ run: pip install pyinstaller
+
+ - name: Build executable
+ run: pyinstaller -F ./HydroRollCore/__init__.py
+
+ - name: Upload artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: executable
+ path: dist/HydroRollCore.exe