Skip to content

Commit

Permalink
Update jekyll-gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroJacobLi authored Jun 19, 2024
1 parent 43114cb commit 291fb7c
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,48 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
name: Deploy Jekyll Site to GitHub Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1

Check failure on line 23 in .github/workflows/jekyll-gh-pages.yml

View workflow job for this annotation

GitHub Actions / call-workflow / yamllint

23:1 [trailing-spaces] trailing spaces
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
source: ./
destination: ./_site
ruby-version: '3.0' # Ensure this matches the Ruby version you use locally

Check failure on line 28 in .github/workflows/jekyll-gh-pages.yml

View workflow job for this annotation

GitHub Actions / call-workflow / yamllint

28:1 [trailing-spaces] trailing spaces
- name: Build Jekyll site
run: |
cd browser
bundle install
bundle exec jekyll build --destination ../_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_site'

Check failure on line 39 in .github/workflows/jekyll-gh-pages.yml

View workflow job for this annotation

GitHub Actions / call-workflow / yamllint

39:1 [trailing-spaces] trailing spaces
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
env:
JEKYLL_ENV: production

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 291fb7c

Please sign in to comment.