Skip to content

Merge pull request #5 from mtgbl/add-deploy-workflow #18

Merge pull request #5 from mtgbl/add-deploy-workflow

Merge pull request #5 from mtgbl/add-deploy-workflow #18

Workflow file for this run

name: Build page
on:
pull_request:
push:
schedule:
- cron: '0 23 * * 5' # At 23:00 on Friday
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Build
run: bundle exec jekyll build
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
if: github.ref == 'refs/heads/main'
with:
path: _site/
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2