🆕(git) add cherry pick #250
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
name: Build and Update HTML branch | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create build folder | |
run: mkdir build | |
- name: Create pages | |
run: vim -c "source nvim/vimrc" -c "source nvim/colors/calmo.vim" -c "hi! Normal guibg=#1c1c1c guifg=#bcbcbc" -c "TOhtml" -c "w build/index.html" -c "qa!" nvim/vimrc | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build |