Skip to content

Commit

Permalink
Update gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
genuinemoses authored Dec 12, 2023
1 parent b3cee24 commit 26a9239
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
name: Build and Deploy Jekyll
name: Build and Deploy Jekyll Site

on:
push:
branches: ["main"]
branches: ["main", "gh-pages"]

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

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
Expand All @@ -25,27 +23,28 @@ jobs:
with:
ref: "gh-pages"

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Build site
- name: Build Jekyll Site
run: bundle exec jekyll build --verbose --trace

- name: Setup Pages
uses: actions/configure-pages@v3


- name: Upload artifacts
uses: actions/upload-pages-artifact@v2
with:
path: ./_site
name: github-pages
retention-days: 1

deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 26a9239

Please sign in to comment.