Skip to content

Commit

Permalink
publish doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Aug 12, 2024
1 parent c1b0087 commit 91c08ea
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 21 deletions.
53 changes: 33 additions & 20 deletions .github/workflows/workspace-gen-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,40 @@ name: (workspace) Deploy documentation

on:
push:
tags:
- v*
branches:
- doc

jobs:
deploy-typedoc:

deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Generate doc
run: |
npm ci
npm run doc
mv docs/documentation/html massa-web3
- name: Deploy files
uses: appleboy/scp-action@master
with:
host: ${{ secrets.MASSANET_HOST }}
username: ${{ secrets.MASSANET_USERNAME }}
key: ${{ secrets.MASSANET_SSHKEY }}
source: "./massa-web3"
target: "/var/www/type-doc"
- name: Mask and Log Secrets
run: |
echo "::add-mask::${{ secrets.MASSANET_HOST }}"
echo "::add-mask::${{ secrets.MASSANET_USERNAME }}"
echo "Host: ${{ secrets.MASSANET_HOST }}"
echo "Username: ${{ secrets.MASSANET_USERNAME }}"
# deploy-typedoc:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 18
# - name: Generate doc
# run: |
# npm ci
# npm run build
# npm run doc
# mv ./packages/massa-web3/docs/documentation/html massa-web3
# - name: Deploy files
# uses: appleboy/scp-action@master
# with:
# host: ${{ secrets.MASSANET_HOST }}
# username: ${{ secrets.MASSANET_USERNAME }}
# key: ${{ secrets.MASSANET_SSHKEY }}
# source: "./massa-web3"
# target: "/var/www/type-doc"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"prettier": "prettier --check .",
"prettier:fix": "prettier --write .",
"fmt": "npm run lint:fix && npm run prettier:fix",
"fmt:check": "npm run lint && npm run prettier"
"fmt:check": "npm run lint && npm run prettier",
"doc": "npm run doc --ws --if-present"
},
"devDependencies": {
"@massalabs/eslint-config": "^0.0.10",
Expand Down

0 comments on commit 91c08ea

Please sign in to comment.