mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +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:
|
publish:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
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 }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
fpm -C package -s dir -t deb -n "Khoj" --version "$GITHUB_REF_NAME" -p dist/Khoj.deb
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
if : matrix.os == 'macos-latest'
|
|
||||||
with:
|
with:
|
||||||
name: khoj.dmg
|
name: khoj_${{github.ref_name}}_amd64.${{ matrix.extension }}
|
||||||
path: dist/Khoj.dmg
|
path: dist/Khoj.${{ matrix.extension }}
|
||||||
|
|
||||||
- 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
|
|
||||||
Reference in New Issue
Block a user