Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

fix(docs): change trigger with good branch #1

fix(docs): change trigger with good branch

fix(docs): change trigger with good branch #1

Workflow file for this run

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