-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request !35 from 欧雷/master
- Loading branch information
Showing
1 changed file
with
5 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,39 +7,10 @@ on: | |
paths: | ||
- docs/* | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sync-docs-to-community: | ||
runs-on: ubuntu-latest | ||
env: | ||
NOP_PROJECT_DOCS_REPO: nop-platform/nop-entropy-docs | ||
steps: | ||
- name: Create temp dirs | ||
run: mkdir docs-src docs-dist | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: docs-src | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ env.NOP_PROJECT_DOCS_REPO }} | ||
persist-credentials: false | ||
path: docs-dist | ||
- name: Copy docs | ||
run: | | ||
rm -rf docs-dist/src | ||
mv docs-src/docs docs-dist/src | ||
- name: Commit changes | ||
run: | | ||
cd docs-dist | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Nop Assistant" | ||
git add . | ||
git commit -m "chore: update docs via GitHub Actions" | ||
- uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.NOP_PROJECT_DOCS_PAT }} | ||
repository: ${{ env.NOP_PROJECT_DOCS_REPO }} | ||
directory: docs-dist | ||
force: true | ||
uses: nop-platform/.github/.github/workflows/sync-project-docs.yml@main | ||
with: | ||
repo: nop-entropy-docs | ||
secrets: | ||
token: ${{ secrets.NOP_PROJECT_DOCS_PAT }} |