Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdavid7 committed Apr 24, 2024
0 parents commit 337e26a
Show file tree
Hide file tree
Showing 53 changed files with 1,939 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/sync-repo.yml
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
22 changes: 22 additions & 0 deletions .gitignore
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
3 changes: 3 additions & 0 deletions .obsidian/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"alwaysUpdateLinks": true
}
4 changes: 4 additions & 0 deletions .obsidian/appearance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"accentColor": "",
"theme": "moonstone"
}
29 changes: 29 additions & 0 deletions .obsidian/core-plugins-migration.json
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
}
20 changes: 20 additions & 0 deletions .obsidian/core-plugins.json
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"
]
66 changes: 66 additions & 0 deletions .obsidian/hotkeys.json
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"
}
]
}
Loading

0 comments on commit 337e26a

Please sign in to comment.