Skip to content

add github action to deploy to pages #1

add github action to deploy to pages

add github action to deploy to pages #1

Workflow file for this run

name: Build and Deploy to Github Pages
on:
pull_request:
types:
- opened
- synchronize
- reopened
branches:
- master
jobs:
build_only:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# The checkout action doesn't provide a way to get all commit history for a single branch
# So we use the magic number 2147483647 here which means infinite depth for git fetch
# See https://github.com/actions/checkout/issues/520, https://stackoverflow.com/a/6802238
# this is so that last-modified-at plugin can use the git history to determine the last modified date
fetch-depth: 2147483647
# Use GitHub Actions' cache to cache dependencies on servers
- uses: actions/cache@v4
with:
path: |
.asdf/**
vendor/bundle
key: ${{ runner.os }}-cache-${{ hashFiles('**/cache.key') }}
restore-keys: |
${{ runner.os }}-cache-
- name: Build
uses: actions/jekyll-build-pages@v1
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: adsabs.github.io_site