Skip to content

Commit bb4ca29

Browse files
committed
gitaction files
1 parent 01ce28d commit bb4ca29

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

Tools/create-docs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

0 commit comments

Comments
 (0)