-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (51 loc) · 1.86 KB
/
create-windows-gevent.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Create Windows gevent Backend
on:
push:
tags:
- v*
# For Code Signing please make sure the following secrets are defined in the repository:
# WINDOWS_CERTIFICATE_BASE64 - The Windows code signing certificate, base64 encoded
# WINDOWS_CERTIFICATE_PASSWORD - The password for Windows the certificate
jobs:
windows:
name: Create the Windows gevent Backend
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Set backend environment
working-directory: backend
run: |
pip install --upgrade setuptools pip wheel
pip install t2wml-api
pip install -r requirements.txt
pip install pyinstaller pywin32 semver requests
pip uninstall -y typing typing-extensions
pip install gevent
- name: Create installer
working-directory: backend
env: # Replace unicode characters with ?
PYTHONIOENCODING: :replace
PYTHONLEGACYWINDOWSIOENCODING: true
CI: false # Otherwise React stops on warnings
CSC_KEY_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
run: |
pyinstaller --clean --noupx t2wml-gevent.spec
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash
- name: Upload to Release
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: backend/dist/t2wml-gevent.exe
asset_name: t2wml-causx-gevent-${{ steps.get_version.outputs.VERSION }}.exe
tag: ${{ github.ref }}
overwrite: true
body: "Windows gevent Causx Backend"