Skip to content

Use Chirpy deploy workflow #7

Use Chirpy deploy workflow

Use Chirpy deploy workflow #7

Workflow file for this run

name: Deploy Jekyll with Chirpy
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Install and Build with Jekyll
run: |
bundle install
bundle exec jekyll build
- name: Upload site artifact
uses: actions/upload-pages-artifact@v2
with:
path: _site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3