Add OH #367
Workflow file for this run
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
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: 3.0 | |
- run: bundle exec jekyll build | |
- run: tar -cvzf _site.tar.gz _site | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: site | |
path: _site.tar.gz | |
retention-days: 2 | |
deploy: | |
if: ${{ github.ref == 'refs/heads/main' }} | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v2 | |
- run: pip install ghp-import | |
- uses: actions/download-artifact@v2 | |
with: | |
name: site | |
- run: tar -xzf _site.tar.gz | |
- name: ghp-import | |
run: ghp-import _site -pm "$(git log --format=oneline -n 1 HEAD)" | |
name: jekyll | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches-ignore: | |
- gh-pages |