add missing WASM tools #65
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 Spore Mod Browser and deploy to GitHub Pages | |
| env: | |
| PUBLISH_PATH: SporeCommunity.ModBrowser.Blazor/bin/Release/net9.0/publish/wwwroot | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0 | |
| - run: dotnet workload install wasm-tools | |
| - name: Publish with .NET | |
| run: dotnet publish -c Release | |
| working-directory: ./SporeCommunity.ModBrowser.Blazor | |
| - uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: ${{ env.PUBLISH_PATH }} | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |