use actions checkout to checkout branch

This commit is contained in:
Krishna Vedala 2020-05-25 19:58:51 -04:00
parent 630f213118
commit 9275b6a97e
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7
1 changed files with 6 additions and 3 deletions

View File

@ -20,8 +20,11 @@ jobs:
- name: build
run: cmake --build build -t doc
- name: gh-pages
run: git checkout gh-pages
- name: cleanup
run: ls -lah && rm -r !("build")
uses: actions/checkout@master
with:
ref: "gh-pages"
clean: true
# - name: cleanup
# run: ls -lah && rm -r !("build")
- name: commit
run: mv ./build/html . && rm -rf ./build && ls -lah