remove redirect on navigate #6
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: Publish Writerside Docs to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - master # update if your default branch is different | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Build Writerside docs | |
| uses: JetBrains/writerside-github-action@v4 | |
| with: | |
| instance: "Writerside/infinity" | |
| artifact: "webHelpINFINITY2-all.zip" | |
| location: "Writerside" | |
| - name: Unzip artifact | |
| run: unzip -q artifacts/webHelpINFINITY2-all.zip -d webHelpINFINITY2 | |
| - name: Debug - List build output | |
| run: | | |
| echo "=== Build output structure ===" | |
| find webHelpINFINITY2 -type f -name "*.css" -o -name "*.woff2" | |
| echo "=== Checking for custom.css reference in HTML ===" | |
| grep -r "custom.css" webHelpINFINITY2 || echo "No custom.css reference found" | |
| echo "=== Contents of cfg folder ===" | |
| ls -la Writerside/cfg/ | |
| - name: Replace redirect index.html with start page | |
| run: cp webHelpINFINITY2/infinitymsfs.html webHelpINFINITY2/index.html | |
| - name: Upload artifact to GitHub Pages | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: "webHelpINFINITY2" # Folder inside the produced ZIP | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |