mirror of
https://github.com/metagov/govarch-website.git
synced 2025-06-22 02:11:06 +00:00
Github pages using github actions
This commit is contained in:
37
.github/workflows/gov-arch-site.yml
vendored
Normal file
37
.github/workflows/gov-arch-site.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
name: Build and Deploy a Jekyll Site to GitHub Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
jekyll:
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- name: 📂 setup
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# include the lines below if you are using jekyll-last-modified-at
|
||||||
|
# or if you would otherwise need to fetch the full commit history
|
||||||
|
# however this may be very slow for large repositories!
|
||||||
|
# with:
|
||||||
|
# fetch-depth: '0'
|
||||||
|
- name: 💎 setup ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 3.2
|
||||||
|
|
||||||
|
- name: 🔨 install dependencies & build site
|
||||||
|
uses: limjh16/jekyll-action-ts@v2
|
||||||
|
with:
|
||||||
|
enable_cache: true
|
||||||
|
|
||||||
|
- name: 🚀 deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./_site
|
||||||
|
# if the repo you are deploying to is <username>.github.io, uncomment the line below.
|
||||||
|
# if you are including the line below, make sure your source files are NOT in the "main" branch:
|
||||||
|
# publish_branch: main
|
1
.ruby-version
Normal file
1
.ruby-version
Normal file
@ -0,0 +1 @@
|
|||||||
|
ruby-3.2.3
|
4
Gemfile
4
Gemfile
@ -3,5 +3,9 @@
|
|||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
gemspec
|
gemspec
|
||||||
|
|
||||||
|
ruby "3.2.3"
|
||||||
|
|
||||||
|
gem "jekyll", "~> 4.2.0"
|
||||||
|
|
||||||
# for demo site
|
# for demo site
|
||||||
gem "jekyll-paginate"
|
gem "jekyll-paginate"
|
@ -17,7 +17,7 @@ title: Governance Archaeology
|
|||||||
# email: hello@patdryburgh.com
|
# email: hello@patdryburgh.com
|
||||||
description: >- # this means to ignore newlines until "baseurl:"
|
description: >- # this means to ignore newlines until "baseurl:"
|
||||||
TK Governance Archaeology description
|
TK Governance Archaeology description
|
||||||
baseurl: "/" # the subpath of your site, e.g. /blog
|
baseurl: "/gov-arch-site" # the subpath of your site, e.g. /blog
|
||||||
url: "https://patdryburgh.github.io" # the base hostname & protocol for your site, e.g. http://example.com
|
url: "https://patdryburgh.github.io" # the base hostname & protocol for your site, e.g. http://example.com
|
||||||
# icon: /assets/images/icon-512.png
|
# icon: /assets/images/icon-512.png
|
||||||
# twitter_username: patdryburgh
|
# twitter_username: patdryburgh
|
||||||
|
Reference in New Issue
Block a user