Skip to content

chore: added generate workflow #2

chore: added generate workflow

chore: added generate workflow #2

Workflow file for this run

name: Injective Docs Generation
on:
push:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout injective-docs
uses: actions/checkout@v1
with:
repository: InjectiveLabs/injective-docs
ref: dev
path: ./injective-docs
- name: Generate new docs from injective-core
run: |
cd injective-docs
export GH_CORE_USER=${{ secrets.GH_CORE_USER }}
export GH_CORE_TOKEN=${{ secrets.GH_CORE_TOKEN }}
./scripts/setup.sh
- name: Checkout injective-docs
uses: actions/checkout@v1
with:
repository: InjectiveLabs/injective-docs
ref: dev
path: ./injective-docs
- name: Commit the changes to injective-docs
run: |
cd injective-docs
git add .
git commit -m "chore: docs regenerated"
git push