diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml new file mode 100644 index 00000000..5cfcf1df --- /dev/null +++ b/.github/workflows/docs-deploy.yml @@ -0,0 +1,20 @@ +name: docsdeploy +on: + push: + branches: [main] +jobs: + copy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: copy docs to gridaco/grida.co + uses: DevOpenWRT-Router/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} + with: + source-directory: "docs" + destination-github-username: "gridaco" + destination-repository-name: "grida.co" + user-email: github@grida.co + target-branch: docs + target-directory: "docs/@designto-code" diff --git a/docs/README.md b/docs/README.md index 0a22f133..05c648ac 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,7 @@ # Documentations landingpage (for github) For entry, goto [index.md](./index.md) + +## Workflows (**Important!**) + +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. diff --git a/scripts/docs-deploy/README.md b/scripts/docs-deploy/README.md index b0bf790a..2aa9c970 100644 --- a/scripts/docs-deploy/README.md +++ b/scripts/docs-deploy/README.md @@ -1,3 +1,5 @@ # Docs deploy. ## Design to code docs will be located on the web under https://grida.co/docs/design-to-code/ + +# See workflows/docs-deploy.yml