Skip to content

Commit b46d02f

Browse files
Merge pull request #57 from gridaco/docs-deploy
Docs deploy
2 parents 48241ca + 2880e62 commit b46d02f

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/docs-deploy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: docsdeploy
2+
on:
3+
push:
4+
branches: [main]
5+
jobs:
6+
copy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: copy docs to gridaco/grida.co
11+
uses: DevOpenWRT-Router/github-action-push-to-another-repository@main
12+
env:
13+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
14+
with:
15+
source-directory: "docs"
16+
destination-github-username: "gridaco"
17+
destination-repository-name: "grida.co"
18+
user-email: github@grida.co
19+
target-branch: docs
20+
target-directory: "docs/@designto-code"

docs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Documentations landingpage (for github)
22

33
For entry, goto [index.md](./index.md)
4+
5+
## Workflows (**Important!**)
6+
7+
this directory will be copied to gridaco/grida.co by github actions. If you are interacting with this directory under gridaco/grida.co, your changes will be lost.

scripts/docs-deploy/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Docs deploy.
22

33
## Design to code docs will be located on the web under https://grida.co/docs/design-to-code/
4+
5+
# See workflows/docs-deploy.yml

0 commit comments

Comments
 (0)