Skip to content

Build macOS App

Build macOS App #13

Workflow file for this run

name: Build macOS App
on:
release:
types: [created]
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build macOS app
run: |
pyinstaller --onefile project_exporter.py
echo "Contents of dist directory:"
ls -R dist
- name: Create ZIP archive
run: |
cd dist
zip -j "../Project_Exporter-macOS.zip" project_exporter
cd ..
echo "Contents of current directory:"
ls -l
- name: Debug
run: |
echo "GITHUB_REF: ${{ github.ref }}"
ls -l ./Project_Exporter-macOS.zip
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./Project_Exporter-macOS.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}