Docs: update lading page (banner & latest release fetch) (#883) #16
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: Live-debugger landing page publish | |
| on: | |
| push: | |
| paths: | |
| - ".github/workflows/landing-publish.yml" | |
| - landing/** | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| live-debugger-landing-publish: | |
| if: github.repository == 'software-mansion/live-debugger' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: "true" | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: "npm" | |
| cache-dependency-path: landing/package-lock.json | |
| - name: Install node dependencies | |
| working-directory: landing | |
| run: npm install | |
| - name: Build landing page | |
| working-directory: landing | |
| run: npm run build | |
| - name: Publish generated content to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@releases/v3 | |
| with: | |
| FOLDER: landing/dist | |
| BRANCH: gh-pages | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |