Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |