You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! i have customised your repo to my needs, i have git backup of obsidian vault and i didn't want to move any of my notes files so i made script to do it for me and deploy it on web branch
GitHub Actions
name: Obsidian Notes on GitHub Pagesrun-name: ${{ github.actor }} is deploying Obsidian Notes via GitHub Actions 🚀on:
push:
branches:
- masterjobs:
Generate_Static_HTML:
runs-on: ubuntu-lateststeps:
- name: Get Treerun: | sudo apt-get install tree
- name: Checkout repositoryrun: | git config --global user.email "actions@github.com" git config --global user.name "GitHub Actions" git clone https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/wiktormalyska/University-Notes.git
- name: Create and reset 'web' branchrun: | cd University-Notes git checkout -b web git rm -fr *
- name: Add and fetch from 'oth' repositoryrun: | git clone https://github.com/UlisseMini/oth.git cd oth find . -mindepth 1 -maxdepth 1 ! -name '.git' ! -name '.github' -exec mv -t ../ \{\} + cd .. rm -rf oth rm README.md
- name: Clean and populate 'notes' directory with 'master' contentrun: | cd notes rm -fr * git clone https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/wiktormalyska/University-Notes.git cd University-Notes/ find . -mindepth 1 -maxdepth 1 ! -name '.git' ! -name '.github' -exec mv -t ../ \{\} + cd .. rm -rf University-Notes
- name: Commit and push changes to 'web' branchrun: | pwd tree -a cp -r University-Notes/.git . rm -fdr University-Notes/ git add . git commit -m "Update web branch with content from oth and master" git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }} web --forceDeploy_web_to_GitHub_Pages:
runs-on: ubuntu-latestneeds: Generate_Static_HTMLsteps:
- name: Checkoutuses: actions/checkout@v2with:
ref: webpersist-credentials: false # build doesn't need git accesssubmodules: false
- name: Remove .gitmodules if existsrun: | if [ -f .gitmodules ]; then git rm --cached .gitmodules rm .gitmodules git config -f .git/config --remove-section submodule || true git add . git commit -m "Removed submodule configuration" fi
- name: Install dependenciesuses: borales/actions-yarn@v3with:
cmd: install
- name: Build siteuses: borales/actions-yarn@v3with:
cmd: build
- name: Deployuses: JamesIves/github-pages-deploy-action@3.6.2with:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}BRANCH: gh-pagesFOLDER: out
Error:
file:///github/workspace/node_modules/fault/index.js:39returnnewConstructor(reason)^Error: Unknown language: `pascal`isnotregisteredatFormattedError(file:///github/workspace/node_modules/fault/index.js:39:12)atObject.highlight(file:///github/workspace/node_modules/lowlight/lib/core.js:50:11)
at file:///github/workspace/node_modules/rehype-highlight/lib/index.js:105:22atoverload(file:///github/workspace/node_modules/unist-util-visit/index.js:50:16)atnode(element<code>)(file:///github/workspace/node_modules/unist-util-visit-parents/index.js:104:31)atnode(element<pre>)(file:///github/workspace/node_modules/unist-util-visit-parents/index.js:121:79)atnode(root)(file:///github/workspace/node_modules/unist-util-visit-parents/index.js:121:79)atvisitParents(file:///github/workspace/node_modules/unist-util-visit-parents/index.js:61:30)atvisit(file:///github/workspace/node_modules/unist-util-visit/index.js:42:7)at file:///github/workspace/node_modules/rehype-highlight/lib/index.js:69:5Node.jsv20.16.0
The text was updated successfully, but these errors were encountered:
Hi! i have customised your repo to my needs, i have git backup of obsidian vault and i didn't want to move any of my notes files so i made script to do it for me and deploy it on web branch
GitHub Actions
Error:
The text was updated successfully, but these errors were encountered: