mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Simplify upload artifacts to single action
This commit is contained in:
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@@ -9,7 +9,13 @@ jobs:
|
||||
publish:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
extension: deb
|
||||
- os: macos-latest
|
||||
extension: dmg
|
||||
- os: windows-latest
|
||||
extension: exe
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -82,19 +88,6 @@ jobs:
|
||||
fpm -C package -s dir -t deb -n "Khoj" --version "$GITHUB_REF_NAME" -p dist/Khoj.deb
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if : matrix.os == 'macos-latest'
|
||||
with:
|
||||
name: khoj.dmg
|
||||
path: dist/Khoj.dmg
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if : matrix.os == 'windows-latest'
|
||||
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
|
||||
name: khoj_${{github.ref_name}}_amd64.${{ matrix.extension }}
|
||||
path: dist/Khoj.${{ matrix.extension }}
|
||||
Reference in New Issue
Block a user