start commit

This commit is contained in:
Krishna Vedala 2020-05-25 20:20:04 -04:00
parent 225cc4e9ba
commit 6e1da7f0cd
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -9,6 +9,8 @@ on: [push]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
BUILD_SHA: ${GITHUB_SHA}
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
with: with:
@ -24,5 +26,12 @@ jobs:
with: with:
ref: "gh-pages" ref: "gh-pages"
clean: false clean: false
- name: move files - name: Move & Commit files
run: rm -rf !("build" | ".git") && mv ./build/html/*.* . && rm -rf ./build && ls -lah run: |
mv ./build/html/*.* . && rm -rf ./build && rm-rf function_timer && ls -lah
git config --global user.name github-actions
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git add *.*
git commit -am "Documentation for ${BUILD_SHA}" || true
git push --force origin HEAD:$GITHUB_REF || true