From 22ab32052ebd4f479f95c4c9b21596ef741d1e59 Mon Sep 17 00:00:00 2001 From: naiba Date: Tue, 26 Nov 2024 21:59:11 +0800 Subject: [PATCH] refactor: update release workflow to send and download artifacts to self-hosted storage --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c00167c..ba4b37d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,7 +77,9 @@ jobs: # path: | # ./dist/*/* - - name: Send Dev & Prod APK to self-hosted storage + - name: Send artifacts to self-hosted storage + env: + NBFV: ${{ secrets.NBFV }} run: | curl -u $NBFV -F "file=@dist/linux_amd64_linux_amd64_v1/dashboard-linux-amd64" -F "filename=dashboard-linux-amd64" https://fv.naibahq.com/upload @@ -164,7 +166,9 @@ jobs: # with: # path: ./assets - - name: Send Dev & Prod APK to self-hosted storage + - name: Download artifacts to self-hosted storage + env: + NBFV: ${{ secrets.NBFV }} run: | mkdir -p ./assets/a/b curl -u $NBFV -o ./assets/a/b/dashboard-linux-amd64 https://fv.naibahq.com/download?filename=dashboard-linux-amd64