Skip to content

chore: update version to 1.2.0 #22

chore: update version to 1.2.0

chore: update version to 1.2.0 #22

Workflow file for this run

name: Build & Release
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
permissions:
contents: write
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pyinstaller certifi
- name: Build Windows exe
run: pyinstaller build.spec --clean --noconfirm
- name: Smoke test Windows exe
run: dist\GetBhavCopy.exe --headless
continue-on-error: true
- name: Zip Windows build
run: |
powershell -Command "Compress-Archive -Path dist\GetBhavCopy.exe -DestinationPath dist\GetBhavCopy-windows.zip -Force"
- name: Upload Windows artifact
uses: actions/upload-artifact@v4
with:
name: GetBhavCopy-windows
path: dist/GetBhavCopy-windows.zip
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pyinstaller certifi
- name: Build Mac app
run: pyinstaller build.spec --clean --noconfirm
- name: Smoke test Mac app
run: ./dist/GetBhavCopy.app/Contents/MacOS/GetBhavCopy --headless
continue-on-error: true
- name: Zip Mac build
run: |
cd dist
zip -r GetBhavCopy-mac.zip GetBhavCopy.app
- name: Upload Mac artifact
uses: actions/upload-artifact@v4
with:
name: GetBhavCopy-mac
path: dist/GetBhavCopy-mac.zip
release:
needs: [build-windows, build-mac]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download Windows build
uses: actions/download-artifact@v4
with:
name: GetBhavCopy-windows
- name: Download Mac build
uses: actions/download-artifact@v4
with:
name: GetBhavCopy-mac
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
GetBhavCopy-windows.zip
GetBhavCopy-mac.zip
generate_release_notes: true