This repository was archived by the owner on May 24, 2026. It is now read-only.
Fix docusaurus config for gh and remove bits we don't need #2
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 WiX Web site | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| env: | |
| DOTNET_NOLOGO: true | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| DOCUSAURUS_SSR_CONCURRENCY: 5 | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: windows-2022 | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Npm restore | |
| shell: cmd | |
| run: ./src/restore.cmd | |
| - name: Build wixweb | |
| shell: cmd | |
| run: ./src/build.cmd | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: build/deploy/wwwroot | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| # - name: Build wixweb | |
| # shell: cmd | |
| # run: ./src/build.cmd release ${{ secrets.GITHUB_TOKEN }} | |
| # Do NOT publish logs on `master` branch as they may contain secrets in them. | |
| # - name: Save logs | |
| # if: github.ref != 'refs/heads/master' && (success() || failure()) | |
| # uses: actions/upload-artifact@v3 | |
| # with: | |
| # name: logs_${{ github.run_id }} | |
| # path: build/logs/ | |
| # - name: Deploy | |
| # if: github.ref == 'refs/heads/master' && success() | |
| # uses: azure/webapps-deploy@v2 | |
| # with: | |
| # publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | |
| # app-name: wixtoolset | |
| # package: ./build/deploy |