Skip to content

JS SDK upload artifact script added for api docs #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create Release
on:
release:
types: [published]

jobs:
publish-npm:
runs-on: ubuntu-latest
Expand All @@ -16,3 +16,18 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Package JSON Info
uses: myrotvorets/info-from-package-json-action@1.1.0
id: pkgjson

- name: Generate docs
run: |
node sdkdo docs
zip -r docs.zip docs/${{ steps.pkgjson.outputs.packageVersion }}/refs

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: apidocs
path: docs.zip
6 changes: 3 additions & 3 deletions contrib/dox/doc_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
version: version
}

outputs[module.name] = mustache.to_html(ref_template, context, null);
outputs[module.name] = mustache.render(ref_template, context, null);
});

// Generate index
Expand All @@ -332,9 +332,9 @@
version: version
}
var ref_index_template = fs.readFileSync(path.resolve(__dirname, 'ref_index_template.mustache')).toString("utf-8");
outputs["index"] = mustache.to_html(ref_index_template, context, null);
outputs["index"] = mustache.render(ref_index_template, context, null);

//var output = mustache.to_html(template, context, null);
//var output = mustache.render(template, context, null);
callback(null, outputs);
};
})();