Skip to content

chore: bump version to 2.1.3 #164

chore: bump version to 2.1.3

chore: bump version to 2.1.3 #164

name: Build Windows binary
on:
workflow_dispatch: {}
workflow_call:
push:
tags:
- '*'
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Determine App Version
working-directory: client/
run: |
python ..\.github\scripts\get_version.py
- name: Build wheel
shell: bash
working-directory: client/
run: |
poetry build
- name: Setup PyAPP and build
env:
PYAPP_FULL_ISOLATION: 1
PYAPP_PROJECT_NAME: gefyra
PYAPP_EXEC_SPEC: gefyra.cli.main:main
PYAPP_PIP_EXTRA_ARGS: click alive-progress tabulate cli-tracker
PYAPP_DISTRIBUTION_EMBED: 1
working-directory: client/
run: |
Invoke-WebRequest 'https://github.com/ofek/pyapp/releases/latest/download/source.tar.gz' -OutFile .\pyapp-source.tar.gz
7z x pyapp-source.tar.gz
7z x pyapp-source.tar
mv pyapp-v* pyapp-latest
cd pyapp-latest
ls
cargo build --release
mkdir ..\dist-exe
copy .\target\release\pyapp.exe ..\dist-exe\gefyra.exe
copy README.md ../dist-exe/
ls ../dist-exe
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: gefyra-${{ env.PYAPP_PROJECT_VERSION }}-windows-x86_64
path: |
client/dist-exe/
retention-days: 5
- name: Create release zip
working-directory: client/
if: ${{ github.event.release && github.event.action == 'published' }}
run: 7z a -r gefyra-${{ env.PYAPP_PROJECT_VERSION }}-windows-x86_64.zip "dist-exe/"
- name: Attach files to release
uses: softprops/action-gh-release@v2
if: ${{ github.event.release && github.event.action == 'published' }}
with:
files: client/gefyra-${{ env.PYAPP_PROJECT_VERSION }}-windows-x86_64.zip