Put env variable on separate line. Remove unneeded workflow triggers

This commit is contained in:
Debanjum Singh Solanky 2022-08-14 02:40:43 +03:00
parent 65f3d0ff3b
commit 8acc9e49d5

View file

@ -1,15 +1,10 @@
name: release
on:
pull_request:
branches:
- 'master'
paths:
- src/**
- setup.py
- Khoj.spec
- .github/workflows/release.yml
push:
tags:
- v*
pull_request:
branches:
- 'master'
paths:
@ -31,19 +26,22 @@ jobs:
python-version: '3.9'
- name: Install Dependencies
env: CFLAGS: -arch arm64 -arch x86_64
env:
CFLAGS: -arch arm64 -arch x86_64
run: |
python -m pip install --upgrade pip
pip install pyinstaller
brew install create-dmg
- name: Install Application
env: CFLAGS: -arch arm64 -arch x86_64
env:
CFLAGS: -arch arm64 -arch x86_64
run: |
pip install --upgrade .
- name: Package Mac App
env: CFLAGS: -arch arm64 -arch x86_64
env:
CFLAGS: -arch arm64 -arch x86_64
run: |
# Set Target Architecture
sed -E -i "" "s/target_arch='(.*)'/target_arch='universal2'/g" Khoj.spec