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

Commit

Permalink
Try to fix version string
Browse files Browse the repository at this point in the history
  • Loading branch information
BBaoVanC committed Dec 18, 2021
1 parent a980728 commit b8032b3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v2

- name: Get version
id: version
run: |
echo ::set-output name=version::$(grep version package.json | sed 's|.*: \"\(.*\)\",|\1|')
- run: yarn install
env:
VERSION: ${{ steps.version.outputs.version }}
- run: yarn build
env:
VERSION: ${{ steps.version.outputs.version }}
- run: cp config.json webapp/
- run: |
echo $(grep version package.json | sed 's|.*: \"\(.*\)\",|\1|') > webapp/version
echo ${{ steps.version.outputs.version }} > webapp/version
- name: Deploy
uses: crazy-max/ghaction-github-pages@v2
Expand Down

0 comments on commit b8032b3

Please sign in to comment.