Skip to content

Update workflow versions #50

Update workflow versions

Update workflow versions #50

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Get Dependencies
run: sudo apt-get install ruby-full build-essential zlib1g-dev -y
- name: Ruby Cache
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.1
bundler-cache: true
- name: Build Artifacts
run: bundle exec jekyll build -d public
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./public
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4