v14.0.1 #65
Workflow file for this run
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: Github Pages | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Node (20.x) | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install Dependencies | |
| run: yarn install | |
| - name: Build & Test | |
| run: yarn preversion | |
| - name: Checkout GH pages | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: stellar/js-stellar-base | |
| ref: gh-pages | |
| path: jsdoc | |
| - name: Generate JS docs | |
| # because parsing errors still result in renderable docs | |
| continue-on-error: true | |
| run: yarn docs | |
| - name: Publish JS docs | |
| run: | | |
| TAG=`git describe --tags` | |
| cd jsdoc | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git add . | |
| git commit -m $TAG | |
| git push origin gh-pages |