Skip to content

Commit 0bf2577

Browse files
authored
Merge pull request #53 from Hyper-Unearthing/feat/fix-deployment
build: github pages action whitelists plugins
2 parents a93a331 + ef2d775 commit 0bf2577

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
1-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2-
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
1+
# Workflow for building and deploying a Jekyll site to GitHub Pages
2+
name: Deploy Jekyll site to Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
65
push:
76
branches: ["main"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
107
workflow_dispatch:
118

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139
permissions:
1410
contents: read
1511
pages: write
1612
id-token: write
1713

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

2418
jobs:
25-
# Build job
2619
build:
2720
runs-on: ubuntu-latest
2821
steps:
2922
- name: Checkout
3023
uses: actions/checkout@v4
24+
25+
- name: Setup Ruby
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: '3.3'
29+
bundler-cache: true
30+
3131
- name: Setup Pages
32+
id: pages
3233
uses: actions/configure-pages@v5
34+
3335
- name: Build with Jekyll
34-
uses: actions/jekyll-build-pages@v1
35-
with:
36-
source: ./
37-
destination: ./_site
36+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
37+
env:
38+
JEKYLL_ENV: production
39+
3840
- name: Upload artifact
3941
uses: actions/upload-pages-artifact@v3
4042

41-
# Deployment job
4243
deploy:
4344
environment:
4445
name: github-pages

0 commit comments

Comments
 (0)