This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
fix(docs): action change doc folder path #2
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 Retype powered website to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
- feature/180-auto-generated-user-docs-staging | |
workflow_dispatch: | |
jobs: | |
build_and_publish: | |
name: Build and get documentation | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: 'astrodevs-labs/osmium' | |
ref: 'main' | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Build with Cargo | |
run: | | |
cd toolchains/solidity/core | |
cargo build | |
- name: Execute Binary to get documentation | |
run: | | |
./target/debug/solidhunter -d > ../../../doc/documentation.json | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Build md from json | |
run: | | |
cd ../../../doc | |
node createMarkdownFilesFromJsonArray.js | |
- uses: retypeapp/action-build@latest | |
with: | |
config: retype.yml | |
- uses: retypeapp/action-github-pages@latest | |
with: | |
update-branch: true |