ci/cd updated
Some checks failed
Testing Example / build-and-test (push) Failing after 1m29s

This commit is contained in:
SnippetsX 2024-11-12 21:34:58 +03:00
parent 9bb8796761
commit ce801935a7

View File

@ -23,10 +23,12 @@ jobs:
run: npm run build run: npm run build
- name: Export version from metadata.json - 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 - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: admin_dashboard-${{ vars.VERSION }} name: admin_dashboard-${{ env.VERSION }}
path: 'build' path: 'build'