Skip to content

Commit 5893b0d

Browse files
author
arch
committed
add prerelease workflow
1 parent b3fa284 commit 5893b0d

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Prerelease MTFG Windows Executable
2+
3+
on:
4+
push: {}
5+
pull_request: {}
6+
7+
jobs:
8+
miniconda:
9+
name: Miniconda ${{ matrix.os }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: ["windows-latest"]
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v2
17+
- name: Setup Miniconda
18+
uses: conda-incubator/setup-miniconda@v2
19+
with:
20+
activate-environment: build
21+
environment-file: environment_windows.yaml
22+
python-version: 3.9
23+
auto-activate-base: false
24+
- name: Collect Conda Info
25+
shell: bash -l {0}
26+
run: |
27+
conda info
28+
conda env export
29+
- name: Build Application Documentation
30+
shell: bash -l {0}
31+
run: |
32+
cd docs/app
33+
mkdocs build
34+
cd ../..
35+
- name: Build Application
36+
shell: bash -l {0}
37+
run: |
38+
pyinstaller --add-data="funscript_editor/config/*;funscript_editor/config" --add-data="assets/*;." --hidden-import "pynput.keyboard._win32" --hidden-import "pynput.mouse._win32" --noupx --icon=icon.ico funscript-editor.py
39+
- name: Move Documentation to Application Build Directory
40+
shell: bash -l {0}
41+
run: |
42+
mv "docs/app/site" "dist/funscript-editor/funscript_editor/docs"
43+
- name: Create Asset Archive
44+
uses: papeloto/action-zip@v1
45+
with:
46+
files: dist/funscript-editor
47+
recursive: true
48+
dest: funscript-editor_${{ github.sha }}.zip
49+
- uses: actions/upload-artifact@v2
50+
with:
51+
name: funscript-editor_${{ github.sha }}.zip
52+
path: ./funscript-editor_${{ github.sha }}.zip
53+
retention-days: 7
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)