Skip to content

Commit

Permalink
Test github workflow to include version
Browse files Browse the repository at this point in the history
  • Loading branch information
OrigamingWasTaken committed Jul 1, 2024
1 parent b404699 commit 3e0f9e6
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3e0f9e6

Please sign in to comment.