Workflow file for this run
This file contains 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 doc on massa server and npmjs | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish-npm: | |
name: publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org | |
- name: Extract tag | |
id: get_tag | |
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/} | |
env: | |
GITHUB_REF: ${{ github.ref }} | |
- run: ./scripts/publish.sh ${{ steps.get_tag.outputs.TAG }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} | |
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 doc | |
mv docs/documentation/html wallet-provider | |
- name: Deploy files | |
uses: appleboy/[email protected] | |
env: | |
HOST: ${{ secrets.MASSANET_HOST }} | |
USERNAME: ${{ secrets.MASSANET_USERNAME }} | |
KEY: ${{ secrets.MASSANET_SSHKEY }} | |
with: | |
source: "./wallet-provider" | |
target: "/var/www/type-doc" | |