fix: fixed a bug which caused media to not play when imported until t… #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Docs Site | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'docs-site/**' | |
| - 'README.md' | |
| - 'package.json' | |
| - '.github/workflows/deploy-docs.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Clean install dependencies | |
| working-directory: ./docs-site | |
| shell: bash | |
| run: | | |
| rm -rf node_modules package-lock.json | |
| npm install --include=optional | |
| - name: Copy additional files | |
| run: | | |
| # Copy README for reference | |
| cp README.md docs-site/public/README.md | |
| # Copy package.json for version info | |
| cp package.json docs-site/public/package.json | |
| - name: Build static site | |
| working-directory: ./docs-site | |
| run: npm run generate | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./docs-site/.output/public | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |