From 3e0f9e6ff908fcf5dd3304a226ad34a6025ca7d3 Mon Sep 17 00:00:00 2001 From: OrigamingWasTaken <74014262+OrigamingWasTaken@users.noreply.github.com> Date: Mon, 1 Jul 2024 12:07:25 +0200 Subject: [PATCH] Test github workflow to include version --- .github/workflows/build.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 203f5b7..faf4d06 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,27 +24,33 @@ jobs: - name: Build app run: npm run build + - name: Get version from package.json + id: get_version + run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV + - name: Zip artifacts run: | cd dist for dir in */; do - zip -r "${dir%/}.zip" "$dir" + zip -r "${dir%/}_${VERSION}.zip" "$dir" done + env: + VERSION: ${{ env.VERSION }} - name: Upload (mac_x64) uses: actions/upload-artifact@v4 with: - name: ${{ github.event.repository.name }}_mac_x64 - path: dist/mac_x64.zip + name: ${{ github.event.repository.name }}_mac_x64_${{ env.VERSION }} + path: dist/appleblox_x64_${{ env.VERSION }}.zip - name: Upload (mac_universal) uses: actions/upload-artifact@v4 with: - name: ${{ github.event.repository.name }}_mac_universal - path: dist/mac_universal.zip + name: ${{ github.event.repository.name }}_mac_universal_${{ env.VERSION }} + path: dist/appleblox_universal_${{ env.VERSION }}.zip - name: Upload (mac_arm64) uses: actions/upload-artifact@v4 with: - name: ${{ github.event.repository.name }}_mac_arm64 - path: dist/mac_arm64.zip + name: ${{ github.event.repository.name }}_mac_arm64_${{ env.VERSION }} + path: dist/appleblox_arm64_${{ env.VERSION }}.zip