File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Push docs into modio docs
2+ on :
3+ push :
4+ branches :
5+ - main
6+ paths :
7+ - " **.md"
8+ workflow_dispatch :
9+
10+ jobs :
11+ push-docs-to-modio-docs :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Clone repo
15+ uses : actions/checkout@v3
16+
17+ - name : Create docs structure
18+ run : |
19+ Tools/create-docs.sh
20+
21+ - name : Push public unity docs into modio
22+ uses : cpina/github-action-push-to-another-repository@main
23+ env :
24+ API_TOKEN_GITHUB : ${{ secrets.DOCS_ACCESS_TOKEN }}
25+ with :
26+ source-directory : out/docs/public/unity
27+ destination-github-username : " modio"
28+ destination-repository-name : " modio-docs"
29+ commit-message : " docs: updating public unity docs from modio-unity repo"
30+ target-branch : main
31+ target-directory : public/unity
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Create the folder structure of the docs
3+ mkdir -p out/docs/public/unity
4+
5+ # Copy md docs
6+ cp README.md out/docs/public/unity/getting-started.md
You can’t perform that action at this time.
0 commit comments