mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Merge pull request #66 from debanjum/use-venv-to-reduce-debian-app-size
Improve Release Workflow, Automatically Publish Artifacts to Release
This commit is contained in:
commit
a26f7f4716
1 changed files with 11 additions and 15 deletions
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
|
@ -1,6 +1,7 @@
|
|||
name: release
|
||||
|
||||
on:
|
||||
workflow-dispatch:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
|
@ -36,6 +37,9 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
pyinstaller Khoj.spec
|
||||
if [ "$RUNNER_OS" == "Windows" ]; then
|
||||
mv dist/Khoj.exe dist/khoj_"$GITHUB_REF_NAME"_amd64.exe
|
||||
fi
|
||||
|
||||
- name: Create Mac App DMG
|
||||
if: matrix.os == 'macos-latest'
|
||||
|
@ -54,7 +58,7 @@ jobs:
|
|||
--icon "Khoj.app" 175 120 \
|
||||
--hide-extension "Khoj.app" \
|
||||
--app-drop-link 425 120 \
|
||||
"dist/Khoj.dmg" \
|
||||
"dist/khoj_"$GITHUB_REF_NAME"_amd64.dmg" \
|
||||
"dist/dmg/"
|
||||
|
||||
- uses: ruby/setup-ruby@v1
|
||||
|
@ -79,22 +83,14 @@ jobs:
|
|||
chmod 644 package/opt/Khoj
|
||||
|
||||
# Package the app
|
||||
fpm -C package -s dir -t deb -n "Khoj" --version "$GITHUB_REF_NAME" -p dist/Khoj.deb
|
||||
fpm -C package -s dir -t deb -n "Khoj" --version "$GITHUB_REF_NAME" -p dist/khoj_"$GITHUB_REF_NAME"_amd64.deb
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if : matrix.os == 'macos-latest'
|
||||
with:
|
||||
name: khoj.dmg
|
||||
path: dist/Khoj.dmg
|
||||
path: dist/khoj_${{github.ref_name}}_amd64*
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if : matrix.os == 'windows-latest'
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
name: khoj.exe
|
||||
path: dist/Khoj.exe
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if : matrix.os == 'ubuntu-latest'
|
||||
with:
|
||||
name: khoj.deb
|
||||
path: dist/Khoj.deb
|
||||
files: khoj_${{github.ref_name}}_amd64*
|
||||
|
|
Loading…
Add table
Reference in a new issue