From 76b5c5ffd147664fd63db1a6b1709f8ca3ef5b20 Mon Sep 17 00:00:00 2001 From: hiento09 <136591877+hiento09@users.noreply.github.com> Date: Tue, 2 Jan 2024 17:57:32 +0700 Subject: [PATCH] Enrich discord message for nightly build url (#1294) * Create shared job output get version for nightly build * update CI prod add change version for web/package.json * Add condition enable for auto update on CI run on main branch only * Update Makefile to delete extensions folder on jan root * Correct version for nightly build ci pipeline * Add direct url for nightly build to README.md file * Correct make clean path for windows * Remove nightly build session in README * Enrich discord message info * correct nightly build url --------- Co-authored-by: Hien To --- .../workflows/jan-electron-build-nightly.yml | 32 +++++++++++++------ README.md | 8 ++--- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/.github/workflows/jan-electron-build-nightly.yml b/.github/workflows/jan-electron-build-nightly.yml index 78cba3eca..b5ffa9a3b 100644 --- a/.github/workflows/jan-electron-build-nightly.yml +++ b/.github/workflows/jan-electron-build-nightly.yml @@ -311,16 +311,22 @@ jobs: - name: Notify Discord uses: Ilshidur/action-discord@master with: - args: "Jan App Nightly build artifact version {{ VERSION }}: https://github.com/janhq/jan/actions/runs/{{ GITHUB_RUN_ID }}" + args: | + Jan App Nightly build artifact version {{ VERSION }}: + - Windows: https://delta.jan.ai/{{ VERSION }}/jan-win-x64-{{ VERSION }}.exe + - macOS Intel: https://delta.jan.ai/{{ VERSION }}/jan-mac-x64-{{ VERSION }}.dmg + - macOS Apple Silicon: https://delta.jan.ai/{{ VERSION }}/jan-mac-arm64-{{ VERSION }}.dmg + - Linux: https://delta.jan.ai/{{ VERSION }}/jan-linux-amd64-{{ VERSION }}.deb + - Github action run: https://github.com/janhq/jan/actions/runs/{{ GITHUB_RUN_ID }} env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} - name: Update README.md with artifact URL run: | - sed -i "s|||" README.md - sed -i "s|||" README.md - sed -i "s|||" README.md - sed -i "s|||" README.md + sed -i "s|||" README.md + sed -i "s|||" README.md + sed -i "s|||" README.md + sed -i "s|||" README.md git config --global user.email "service@jan.ai" git config --global user.name "Service Account" git add README.md @@ -348,7 +354,13 @@ jobs: - name: Notify Discord uses: Ilshidur/action-discord@master with: - args: "Jan App Manual build artifact version {{ VERSION }}: https://github.com/janhq/jan/actions/runs/{{ GITHUB_RUN_ID }}" + args: | + Jan App Manual build artifact version {{ VERSION }}: + - Windows: https://delta.jan.ai/{{ VERSION }}/jan-win-x64-{{ VERSION }}.exe + - macOS Intel: https://delta.jan.ai/{{ VERSION }}/jan-mac-x64-{{ VERSION }}.dmg + - macOS Apple Silicon: https://delta.jan.ai/{{ VERSION }}/jan-mac-arm64-{{ VERSION }}.dmg + - Linux: https://delta.jan.ai/{{ VERSION }}/jan-linux-amd64-{{ VERSION }}.deb + - Github action run: https://github.com/janhq/jan/actions/runs/{{ GITHUB_RUN_ID }} env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} @@ -356,10 +368,10 @@ jobs: - name: Update README.md with artifact URL if: github.ref == 'refs/heads/main' run: | - sed -i "s|||" README.md - sed -i "s|||" README.md - sed -i "s|||" README.md - sed -i "s|||" README.md + sed -i "s|||" README.md + sed -i "s|||" README.md + sed -i "s|||" README.md + sed -i "s|||" README.md git config --global user.email "service@jan.ai" git config --global user.name "Service Account" git add README.md diff --git a/README.md b/README.md index c02ae93a7..9ae15f4ba 100644 --- a/README.md +++ b/README.md @@ -70,25 +70,25 @@ Jan is an open-source ChatGPT alternative that runs 100% offline on your compute Experimental (Nightly Build) - + jan.exe - + Intel - + M1/M2 - + jan.deb