forked from hitontology/hitontology.eu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: deploy to the static branch again using JamesIves/github-pages…
…-deploy-action, part of #4
- Loading branch information
1 parent
e990dc7
commit a35af45
Showing
1 changed file
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
name: Build and deploy Jekyll site to GitHub Pages | ||
name: Build Jekyll site and deploy static HTML to the "static" branch | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
build-and-deploy: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
|
||
- name: Setup Ruby and dependencies | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3' | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- uses: actions/configure-pages@v5 | ||
- run: bundle exec jekyll build | ||
- uses: actions/upload-pages-artifact@v3 | ||
bundler-cache: true | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/deploy-pages@v4 | ||
- name: Build static HTML | ||
run: bundle exec jekyll build | ||
|
||
- name: Deploy static HTML to the "static" branch | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: static | ||
folder: _site | ||
single-commit: true |