Rename zip target #3
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" # Format: <module>/<product> where product ID is from infinity.tree | |
| artifact: "webHelpINFINITY2-all.zip" | |
| - name: Unzip artifact | |
| run: unzip -q webHelpINFINITY2-all.zip -d webHelpINFINITY2 | |
| - 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 |