Skip to content

Commit

Permalink
fix: Add gh pages for testing docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
richtera committed Nov 5, 2023
1 parent 4520fb8 commit fe47535
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,32 @@ jobs:

- name: Use Node.js '18.12.1'
uses: actions/setup-node@v2
if: ${{ steps.release.outputs.release_created }}
with:
node-version: "18.12.1"
registry-url: "https://registry.npmjs.org"
scope: "@lukso"
cache: "pnpm"

- name: Install Dependencies
if: ${{ steps.release.outputs.release_created }}
run: pnpm install

# `npm run build:js` will also generate the auto-generated constants for methods, errors and events,
# including extracting their devdocs and userdocs
- name: Prepare artifacts to publish
if: ${{ steps.release.outputs.release_created }}
run: |
pnpm run build
- name: Colled documentation
run: |
pnpm run docs
- name: Deploy
# if: ${{ steps.release.outputs.release_created }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs

- name: Publish on NPM
if: ${{ steps.release.outputs.release_created }}
run: pnpm turbo publish --access public
Expand Down

0 comments on commit fe47535

Please sign in to comment.