Skip to content

Commit 41b9551

Browse files
Merge pull request #5 from regulate-tech/feature/staging-updates
Feature/staging updates
2 parents 6597e82 + 4612d56 commit 41b9551

23 files changed

+780
-59
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/pages.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy Jekyll (docs/) to GitHub Pages - Staging
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: false
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Ruby
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: '3.2'
27+
bundler-cache: true
28+
working-directory: docs
29+
30+
- name: Install dependencies
31+
working-directory: docs
32+
run: |
33+
bundle config set path 'vendor/bundle'
34+
bundle install --jobs 4
35+
36+
- name: Build Jekyll for staging
37+
working-directory: docs
38+
run: |
39+
echo "Building staging site"
40+
bundle exec jekyll build --trace \
41+
--destination _site \
42+
--config _config.yml,_config.staging.yml
43+
echo "staging.nhstech.uk" > _site/CNAME
44+
45+
- name: Upload Pages artifact
46+
uses: actions/upload-pages-artifact@v3
47+
with:
48+
path: docs/_site
49+
50+
deploy:
51+
needs: build
52+
runs-on: ubuntu-latest
53+
environment:
54+
name: github-pages
55+
url: https://staging.nhstech.uk
56+
steps:
57+
- name: Deploy to GitHub Pages
58+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
.ipynb_checkpoints
2-
subject-mrc/data/source/eric/
1+
# Jekyll/Build Output
2+
_site/
3+
docs/_site
4+
docs/jekyll-cache
5+
.jekyll-cache/
6+
7+
# Bundler/Ruby Dependencies
8+
vendor/
9+
.bundle/
10+
docs/vendor
11+
docs/.bundle
12+
13+
# Local Working & Cache Artifacts
14+
*~
15+
*.swp
16+
.sass-cache/

docs/CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nhstech.uk
1+
staging.nhstech.uk

docs/Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
gem "github-pages"
3+
gem "minima"

0 commit comments

Comments
 (0)