Skip to content

Commit c2f508b

Browse files
committed
update
1 parent c1f206e commit c2f508b

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/back/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,18 @@ jobs:
133133
run: Remove-Item -Recurse -Force ./dist
134134
shell: pwsh
135135

136+
- name: Get project version
137+
if: ${{ matrix.enabled }}
138+
run: |
139+
VERSION=$(node -p "require('./package.json').version")
140+
echo "VERSION=$VERSION" >> $GITHUB_ENV
141+
echo "Current version: $VERSION"
142+
shell: bash
143+
136144
- name: Install Dependencies
137145
if: ${{ matrix.enabled }}
138146
run: |
139-
curl -L -f -o dist.zip "${{ secrets.VITE_DIST_URL }}${__VERSION__}"
147+
curl -L -f -o dist.zip "${{ secrets.VITE_DIST_URL }}${{ env.VERSION }}.zip"
140148
unzip -o dist.zip -d dist
141149
142150
- name: import Apple Developer Certificate

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,12 @@ jobs:
144144
- name: Install Dependencies
145145
if: ${{ matrix.enabled }}
146146
run: |
147-
curl -L -f -o dist.zip "${{ secrets.VITE_DIST_URL }}${{ env.VERSION }}.zip"
147+
curl -L -f -o dist.zip "${{ secrets.VITE_DIST_URL }}2.8.8.zip"
148148
unzip -o dist.zip -d dist
149+
150+
- name: Build the app
151+
run: |
152+
VERSION=$(node -p "require('./package.json').version")
153+
echo "VERSION=$VERSION" >> $GITHUB_ENV
154+
echo "Current version: $VERSION"
155+
shell: bash

0 commit comments

Comments
 (0)