Merge branch 'master' of https://github.com/taylorgibb/taylorgibb.git… #20
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: Build and Deploy | |
| on: | |
| push: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🛎 Check out master | |
| uses: actions/checkout@master | |
| with: | |
| fetch-depth: 1 | |
| - name: 🎩 Install Jekyll | |
| run: | | |
| sudo gem install bundler:2.2.34 jekyll | |
| sudo bundle _2.2.34_ install | |
| - name: 🧹 Clean site | |
| run: | | |
| if [ -d "_site" ]; then | |
| rm -rf _site/* | |
| fi | |
| - name: 🔨 Build site | |
| run: bundle exec jekyll build | |
| - name: 🧪 Deploy build | |
| run: | | |
| git config user.name "${GITHUB_ACTOR}" | |
| git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
| git add . | |
| git commit -am "[skip ci] Deploy with ${GITHUB_WORKFLOW}" | |
| git push --all -f https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git | |