Skip to content

Merge pull request #108 from scalableinternetservices/lecture2updates #471

Merge pull request #108 from scalableinternetservices/lecture2updates

Merge pull request #108 from scalableinternetservices/lecture2updates #471

Workflow file for this run

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@v4
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@v4
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