Merge pull request #61 from akshay2211/58-implement-json-import-and-e… #11
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 Site | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-java@v3 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - run: pip install mkdocs-material mkdocs-minify-plugin mkdocs-gen-files | |
| - run: ./gradlew dokkaGenerateHtml | |
| - run: mkdir -p docs/dokka && cp -r DrawBox/build/dokka/html/* docs/dokka/ | |
| - run: mkdocs build | |
| - name: Build WASM sample | |
| run: ./gradlew :webApp:wasmJsBrowserDistribution | |
| - name: Stage WASM sample under /sample | |
| run: | | |
| mkdir -p site/sample | |
| cp -r webApp/build/dist/wasmJs/productionExecutable/* site/sample/ | |
| - run: python docs/generate_sitemap.py site https://akshay2211.github.io/DrawBox/ | |
| - run: cat site/sitemap.xml | |
| - uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./site |