Skip to content

Commit

Permalink
Fix github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-kanzler committed Aug 2, 2024
1 parent 7e8afd8 commit 957e40d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/Publish_to_Github_Pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,21 @@ jobs:

- name: Install and Build
run: |
cd app_web
npm install
npm run build
- name: Check build size
# 1GB = 1073741824 bytes
run: |
SIZE=$(du -s -B 1 app_web/dist/ | cut -f 1)
SIZE=$(du -s -B 1 dist/ | cut -f 1)
if [[ $SIZE -gt 1073741824 ]]; then echo 'dist folder exceeds limit of 1GB! Aborting'; exit 1; fi
- name: Deploy to Khronos repo
continue-on-error: true # If no changes are commited this action fails
uses: JamesIves/github-pages-deploy-action@v4.6.3
with:
branch: main
folder: app_web/dist/
folder: dist/
token: ${{ secrets.BUILD_GITHUB_PAGES }}
repository-name: KhronosGroup/glTF-Sample-Viewer-Release
target-folder: docs
Expand Down

0 comments on commit 957e40d

Please sign in to comment.