Skip to content
This repository was archived by the owner on Feb 19, 2022. It is now read-only.

Commit b8032b3

Browse files
committed
Try to fix version string
1 parent a980728 commit b8032b3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,20 @@ jobs:
1414
- name: Set up Node
1515
uses: actions/setup-node@v2
1616

17+
- name: Get version
18+
id: version
19+
run: |
20+
echo ::set-output name=version::$(grep version package.json | sed 's|.*: \"\(.*\)\",|\1|')
21+
1722
- run: yarn install
23+
env:
24+
VERSION: ${{ steps.version.outputs.version }}
1825
- run: yarn build
26+
env:
27+
VERSION: ${{ steps.version.outputs.version }}
1928
- run: cp config.json webapp/
2029
- run: |
21-
echo $(grep version package.json | sed 's|.*: \"\(.*\)\",|\1|') > webapp/version
30+
echo ${{ steps.version.outputs.version }} > webapp/version
2231
2332
- name: Deploy
2433
uses: crazy-max/ghaction-github-pages@v2

0 commit comments

Comments
 (0)