remove rudiments #2
This file contains hidden or 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
name: Publish to gh-pages branch | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build and Push | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
path: clone-path | |
- name: Install dependencies and run build | |
run: | | |
cd ${{ github.workspace }} | |
pip install --upgrade pip | |
pip install git+https://github.com/obsidian-html/obsidian-html | |
obsidianhtml convert -i clone-path/config.yaml -v | |
touch html/.nojekyll | |
- name: Publish to Github Pages | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages # The branch name where you want to push the assets | |
FOLDER: html # The directory where your assets are generated | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token | |
MESSAGE: "Build: ({sha}) {msg}" # The commit message |