This commit is contained in:
parent
9bb8796761
commit
ce801935a7
@ -23,10 +23,12 @@ jobs:
|
||||
run: npm run build
|
||||
|
||||
- name: Export version from metadata.json
|
||||
run: echo "VERSION=$(cat src/metadata.json | grep '"'"'buildMajor'"'"' | sed 's/.*"buildMajor":\s*//;s/.*"buildMinor":\s*//;s/.*"buildRevision":\s*//;s/.*"buildTag":\s*//;s/[^0-9.]//g')" >> $GITHUB_ENV
|
||||
run: |
|
||||
VERSION=$(jq -r '.buildMajor + "." + .buildMinor + "." + .buildRevision + "-" + .buildTag' src/metadata.json)
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: admin_dashboard-${{ vars.VERSION }}
|
||||
name: admin_dashboard-${{ env.VERSION }}
|
||||
path: 'build'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user