Skip to content

Commit

Permalink
ci: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed May 27, 2024
1 parent 78c7316 commit c342e88
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-app-for-mac-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ jobs:
working-directory: webui
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: List files
run: ls -ltr release/*
working-directory: webui
- name: Upload assets to Cloudflare R2
run: |
mkdir -p r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio_*_arm64.dmg r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio_*_arm64.zip r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio_${{ env.RELEASE_VERSION }}_arm64.dmg r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio_${{ env.RELEASE_VERSION }}_arm64.zip r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cd r2 && fluentci run --wasm r2-sync upload --endpoint-url https://$ACCOUNT_ID.r2.cloudflarestorage.com s3://assets
env:
TAG: ${{ env.RELEASE_VERSION }}
Expand All @@ -36,7 +38,7 @@ jobs:
- name: Upload release assets
run: |
for ext in dmg zip; do
export FILE=fluentci-studio_*_arm64.$ext
export FILE=fluentci-studio_${{ env.RELEASE_VERSION }}_arm64.$ext
fluentci run --wasm github release_upload $TAG $FILE
done
env:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release-app-for-mac-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ jobs:
working-directory: webui
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: List files
run: ls -ltr release/*
working-directory: webui
- name: Upload assets to Cloudflare R2
run: |
mkdir -p r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio_*_x64.dmg r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio_*_x64.zip r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio_${{ env.RELEASE_VERSION }}_x64.dmg r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio_${{ env.RELEASE_VERSION }}_x64.zip r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cd r2 && fluentci run --wasm r2-sync upload --endpoint-url https://$ACCOUNT_ID.r2.cloudflarestorage.com s3://assets
env:
TAG: ${{ env.RELEASE_VERSION }}
Expand All @@ -36,7 +38,7 @@ jobs:
- name: Upload release assets
run: |
for ext in dmg zip; do
export FILE=fluentci-studio_*_x64.$ext
export FILE=fluentci-studio_${{ env.RELEASE_VERSION }}_x64.$ext
fluentci run --wasm github release_upload $TAG $FILE
done
env:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ jobs:
working-directory: webui
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: List files
run: ls -ltr release/*
working-directory: webui
- name: Upload assets to Cloudflare R2
run: |
mkdir -p r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio-*.AppImage r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio-*.tar.gz r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio-${{ env.RELEASE_VERSION }}.AppImage r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cp fluentci-studio-${{ env.RELEASE_VERSION }}.tar.gz r2/fluentci-studio/${{ env.RELEASE_VERSION }}
cd r2 && fluentci run --wasm r2-sync upload --endpoint-url https://$ACCOUNT_ID.r2.cloudflarestorage.com s3://assets
env:
TAG: ${{ env.RELEASE_VERSION }}
Expand All @@ -36,7 +38,7 @@ jobs:
- name: Upload release assets
run: |
for ext in tar.gz AppImage; do
export FILE=fluentci-studio-*.$ext
export FILE=fluentci-studio-${{ env.RELEASE_VERSION }}.$ext
fluentci run --wasm github release_upload $TAG $FILE
done
env:
Expand Down
3 changes: 2 additions & 1 deletion webui/electron-builder.json5
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
files: ["dist-electron", "dist"],
mac: {
icon: "assets/icon.png",
artifactName: "${productName}_${version}_${arch}.${ext}",
artifactName: "${productName}_v${version}_${arch}.${ext}",
target: ["dmg", "zip"],
},
linux: {
icon: "assets/icon.png",
artifactName: "${productName}_v${version}.${ext}",
target: ["AppImage", "tar.gz"],
},
nsis: {
Expand Down

0 comments on commit c342e88

Please sign in to comment.