-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 337e26a
Showing
53 changed files
with
1,939 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Sync main repo to deployed repo | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
env: | ||
ORIGINAL_REPO: github.com/DV-Lab/dvlab-document | ||
DEPLOYED_REPO: github.com/tranhuyducseven/dvlab-document | ||
USERNAME: tranhuyducseven | ||
EMAIL: tranhuyducseven@gmail.com | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.SUPER_TOKEN }} | ||
- name: Clone repo | ||
run : | | ||
echo "Clone ${{ env.ORIGINAL_REPO }} && ${{ env.DEPLOYED_REPO }}" | ||
git clone https://${{ secrets.SUPER_TOKEN }}@${{ env.ORIGINAL_REPO }}.git origin | ||
git clone https://${{ secrets.SUPER_TOKEN }}@${{ env.DEPLOYED_REPO }}.git temp | ||
- name: Setup global config | ||
run : | | ||
- name: Copy files | ||
run : | | ||
echo "[LOG] Copying all origin files to temp" | ||
cp origin/**.**.js temp | ||
cp origin/**.js temp | ||
cp -r origin/blog temp | ||
cp -r origin/docs temp | ||
cp origin/package**.json temp | ||
cp origin/README.md temp | ||
cp -r origin/src temp | ||
cp -r origin/static temp | ||
cd temp | ||
rm -rf .github | ||
- name: Push and commit | ||
run : | | ||
echo "[LOG] Setup global config" | ||
git config --global user.email "${{ env.EMAIL }}" | ||
git config --global user.name "${{ env.USERNAME }}-bot" | ||
git remote set-url origin https://x-access-token:${{ secrets.SUPER_TOKEN }}@${{ env.DEPLOYED_REPO }} | ||
cd temp | ||
echo "[LOG] Git add and commit" | ||
git add . | ||
git commit -m "Synchronize from private repository - Triggered by Github Workflows" | ||
echo "[LOG] Git push" | ||
git push | ||
- name: Remove temp folder | ||
run : | | ||
rm -rf temp | ||
rm -rf origin | ||
ls -al | ||
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Dependencies | ||
/node_modules | ||
|
||
# Production | ||
/build | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.env |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"alwaysUpdateLinks": true | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"accentColor": "", | ||
"theme": "moonstone" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"file-explorer": true, | ||
"global-search": true, | ||
"switcher": true, | ||
"graph": true, | ||
"backlink": true, | ||
"canvas": true, | ||
"outgoing-link": true, | ||
"tag-pane": true, | ||
"page-preview": true, | ||
"daily-notes": true, | ||
"templates": true, | ||
"note-composer": true, | ||
"command-palette": true, | ||
"slash-command": false, | ||
"editor-status": true, | ||
"bookmarks": true, | ||
"markdown-importer": false, | ||
"zk-prefixer": false, | ||
"random-note": false, | ||
"outline": true, | ||
"word-count": true, | ||
"slides": false, | ||
"audio-recorder": false, | ||
"workspaces": false, | ||
"file-recovery": true, | ||
"publish": false, | ||
"sync": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
"file-explorer", | ||
"global-search", | ||
"switcher", | ||
"graph", | ||
"backlink", | ||
"canvas", | ||
"outgoing-link", | ||
"tag-pane", | ||
"page-preview", | ||
"daily-notes", | ||
"templates", | ||
"note-composer", | ||
"command-palette", | ||
"editor-status", | ||
"bookmarks", | ||
"outline", | ||
"word-count", | ||
"file-recovery" | ||
] |
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"workspace:goto-tab-1": [], | ||
"workspace:goto-tab-2": [], | ||
"workspace:goto-tab-3": [], | ||
"workspace:goto-tab-4": [], | ||
"workspace:goto-tab-5": [], | ||
"workspace:goto-tab-6": [], | ||
"workspace:goto-tab-7": [], | ||
"workspace:goto-tab-8": [], | ||
"editor:set-heading-1": [ | ||
{ | ||
"modifiers": [ | ||
"Mod" | ||
], | ||
"key": "1" | ||
} | ||
], | ||
"editor:set-heading-2": [ | ||
{ | ||
"modifiers": [ | ||
"Mod" | ||
], | ||
"key": "2" | ||
} | ||
], | ||
"editor:set-heading-3": [ | ||
{ | ||
"modifiers": [ | ||
"Mod" | ||
], | ||
"key": "3" | ||
} | ||
], | ||
"editor:set-heading-4": [ | ||
{ | ||
"modifiers": [ | ||
"Mod" | ||
], | ||
"key": "4" | ||
} | ||
], | ||
"editor:set-heading-5": [ | ||
{ | ||
"modifiers": [ | ||
"Mod" | ||
], | ||
"key": "5" | ||
} | ||
], | ||
"editor:set-heading-6": [ | ||
{ | ||
"modifiers": [ | ||
"Mod" | ||
], | ||
"key": "6" | ||
} | ||
], | ||
"editor:set-heading": [ | ||
{ | ||
"modifiers": [ | ||
"Mod" | ||
], | ||
"key": "7" | ||
} | ||
] | ||
} |
Oops, something went wrong.