Skip to content

update

update #8

Workflow file for this run

name: swgpu-doc-update
on: # specify the build to trigger the automated ci/cd
push:
branches:
- "main"
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Generate json documentation file
run: npm run doc
- name: Generate markdown documentation files
run: npm run markdown
- name: Checkout wiki code
uses: actions/checkout@v2
with:
repository: ${{github.repository}}.wiki
ref: master
- name: Push to wiki
run: |
cd docs/markdowns
git config --local user.email "[email protected]"
git config --local user.name "jay19240"
git add .
git diff-index --quiet HEAD || git commit -m "Add changes" && git push