feat: Add support for description selbri attachment points in parsing… #58
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: Build WASM App | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build WASM | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: Dockerfile.wasm | |
| tags: tersmu-wasm-builder:latest | |
| push: false | |
| load: true | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Extract WASM and prepare artifact | |
| run: | | |
| # Create the output directory | |
| mkdir -p wasm-web-app-dist | |
| # Extract the WASM file from the image we just built | |
| CONTAINER_ID=$(docker create tersmu-wasm-builder:latest) | |
| docker cp ${CONTAINER_ID}:/output/tersmu.wasm wasm-web-app-dist/tersmu.wasm | |
| docker rm ${CONTAINER_ID} | |
| # Copy other web app files | |
| cp wasm-web-app/index.html wasm-web-app-dist/ | |
| cp wasm-web-app/tersmu.js wasm-web-app-dist/ | |
| cp wasm-web-app/tree-viz.js wasm-web-app-dist/ | |
| cp wasm-web-app/favicon.svg wasm-web-app-dist/ 2>/dev/null || true | |
| cp wasm-web-app/README.md wasm-web-app-dist/ 2>/dev/null || true | |
| - name: Upload WASM Web App Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: wasm-web-app | |
| path: wasm-web-app-dist/ | |
| if-no-files-found: error | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./wasm-web-app-dist | |
| publish_branch: gh-pages |