-
Notifications
You must be signed in to change notification settings - Fork 18
53 lines (45 loc) · 1.41 KB
/
release_actions.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: commcare-export release actions
on:
release:
types: [published]
jobs:
generate_linux_bin:
name: Generate Linux binary as release asset
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install pyinstaller
shell: bash
run: python -m pip install pyinstaller
- name: Generate exe
shell: bash
run: |
pip install commcare-export
pip install -r build_exe/requirements.txt
pyinstaller --dist ./dist/linux commcare-export.spec
- name: Upload release assets
uses: AButler/[email protected]
with:
files: "./dist/linux/*"
repo-token: ${{ secrets.GITHUB_TOKEN }}
generate_windows_exe:
name: Generate Windows exe as release asset
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install pyinstaller
shell: pwsh
run: python -m pip install pyinstaller
- name: Generate exe
shell: pwsh
run: |
pip install commcare-export
pip install -r build_exe/requirements.txt
pyinstaller --dist ./dist/windows commcare-export.spec
- name: Upload release assets
uses: AButler/[email protected]
with:
files: "./dist/windows/*"
repo-token: ${{ secrets.GITHUB_TOKEN }}