Skip to content

Commit 7328228

Browse files
hmdneelia
authored andcommitted
Attempt to restore GitHub pages
1 parent 57d94cb commit 7328228

File tree

7 files changed

+68
-40
lines changed

7 files changed

+68
-40
lines changed

.github/workflows/pages.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Deploy GH Pages
2+
on:
3+
push:
4+
branches:
5+
- source
6+
- "*/ci-check"
7+
jobs:
8+
pages:
9+
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: true
16+
- name: Setup Ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: "3.2" # Not needed with a .ruby-version file
20+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
21+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
22+
run: bin/build
23+
- name: Deploy 🚀
24+
uses: JamesIves/github-pages-deploy-action@v4
25+
with:
26+
branch: master # The branch the action should deploy to.
27+
folder: build # The folder the action should deploy.

.ruby-version

-1
This file was deleted.

Gemfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
source 'https://rubygems.org'
22

3-
ruby '2.7.5' unless ENV['CLOUDFLARE_PAGES']
4-
53
git_source(:github) {|repo_name| "https://github.com/#{repo_name}.git" }
64

75
gem 'opal', '~> 1.8.0'
86
gem 'opal-sprockets'
97
gem 'sass'
108
gem 'haml', '< 6'
119

12-
gem 'middleman', '~> 4.3.6'
10+
gem 'middleman', '~> 4.5.0'
1311
gem 'middleman-syntax'
1412
gem 'middleman-blog'
1513
gem 'rake'

Gemfile.lock

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (5.2.8.1)
4+
activesupport (7.0.8)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
6-
i18n (>= 0.7, < 2)
7-
minitest (~> 5.1)
8-
tzinfo (~> 1.1)
6+
i18n (>= 1.6, < 2)
7+
minitest (>= 5.1)
8+
tzinfo (~> 2.0)
99
addressable (2.8.5)
1010
public_suffix (>= 2.0.2, < 6.0)
1111
ast (2.4.2)
@@ -15,7 +15,7 @@ GEM
1515
execjs
1616
coffee-script-source (1.12.2)
1717
concurrent-ruby (1.2.2)
18-
contracts (0.13.0)
18+
contracts (0.17)
1919
dotenv (2.8.1)
2020
erubis (2.7.0)
2121
execjs (2.9.1)
@@ -28,49 +28,51 @@ GEM
2828
hamster (3.0.0)
2929
concurrent-ruby (~> 1.0)
3030
hashie (3.6.0)
31-
i18n (0.9.5)
31+
i18n (1.6.0)
3232
concurrent-ruby (~> 1.0)
3333
kramdown (2.4.0)
3434
rexml
35-
listen (3.0.8)
36-
rb-fsevent (~> 0.9, >= 0.9.4)
37-
rb-inotify (~> 0.9, >= 0.9.7)
35+
listen (3.8.0)
36+
rb-fsevent (~> 0.10, >= 0.10.3)
37+
rb-inotify (~> 0.9, >= 0.9.10)
3838
memoist (0.16.2)
39-
middleman (4.3.11)
39+
middleman (4.5.0)
4040
coffee-script (~> 2.2)
4141
haml (>= 4.0.5)
4242
kramdown (>= 2.3.0)
43-
middleman-cli (= 4.3.11)
44-
middleman-core (= 4.3.11)
43+
middleman-cli (= 4.5.0)
44+
middleman-core (= 4.5.0)
4545
middleman-blog (4.0.3)
4646
addressable (~> 2.3)
4747
middleman-core (>= 4.0.0)
4848
tzinfo (>= 0.3.0)
49-
middleman-cli (4.3.11)
49+
middleman-cli (4.5.0)
5050
thor (>= 0.17.0, < 2.0)
51-
middleman-core (4.3.11)
52-
activesupport (>= 4.2, < 6.0)
53-
addressable (~> 2.3)
51+
middleman-core (4.5.0)
52+
activesupport (>= 6.1, < 7.1)
53+
addressable (~> 2.4)
5454
backports (~> 3.6)
55-
bundler
56-
contracts (~> 0.13.0)
55+
bundler (~> 2.0)
56+
contracts (~> 0.13)
5757
dotenv
5858
erubis
5959
execjs (~> 2.0)
6060
fast_blank
6161
fastimage (~> 2.0)
6262
hamster (~> 3.0)
6363
hashie (~> 3.4)
64-
i18n (~> 0.9.0)
65-
listen (~> 3.0.0)
64+
i18n (~> 1.6.0)
65+
listen (~> 3.0)
6666
memoist (~> 0.14)
67-
padrino-helpers (~> 0.13.0)
67+
padrino-helpers (~> 0.15.0)
6868
parallel
6969
rack (>= 1.4.5, < 3)
7070
sassc (~> 2.0)
7171
servolux
7272
tilt (~> 2.0.9)
73+
toml
7374
uglifier (~> 3.0)
75+
webrick
7476
middleman-syntax (3.3.0)
7577
middleman-core (>= 3.2)
7678
rouge (~> 3.2)
@@ -87,16 +89,16 @@ GEM
8789
opal (>= 1.0, < 2.0)
8890
sprockets (~> 4.0)
8991
tilt (>= 1.4)
90-
padrino-helpers (0.13.3.4)
91-
i18n (~> 0.6, >= 0.6.7)
92-
padrino-support (= 0.13.3.4)
92+
padrino-helpers (0.15.3)
93+
i18n (>= 0.6.7, < 2)
94+
padrino-support (= 0.15.3)
9395
tilt (>= 1.4.1, < 3)
94-
padrino-support (0.13.3.4)
95-
activesupport (>= 3.1)
96+
padrino-support (0.15.3)
9697
parallel (1.23.0)
9798
parser (3.2.2.4)
9899
ast (~> 2.4.1)
99100
racc
101+
parslet (2.0.0)
100102
public_suffix (5.0.3)
101103
puma (6.4.0)
102104
nio4r (~> 2.0)
@@ -122,10 +124,11 @@ GEM
122124
rack (>= 2.2.4, < 4)
123125
temple (0.10.3)
124126
thor (1.3.0)
125-
thread_safe (0.3.6)
126127
tilt (2.0.11)
127-
tzinfo (1.2.11)
128-
thread_safe (~> 0.1)
128+
toml (0.3.0)
129+
parslet (>= 1.8.0, < 3.0.0)
130+
tzinfo (2.0.6)
131+
concurrent-ruby (~> 1.0)
129132
uglifier (3.2.0)
130133
execjs (>= 0.3.0, < 3)
131134
webrick (1.8.1)
@@ -135,7 +138,7 @@ PLATFORMS
135138

136139
DEPENDENCIES
137140
haml (< 6)
138-
middleman (~> 4.3.6)
141+
middleman (~> 4.5.0)
139142
middleman-blog
140143
middleman-syntax
141144
nokogiri
@@ -149,8 +152,5 @@ DEPENDENCIES
149152
uglifier
150153
webrick
151154

152-
RUBY VERSION
153-
ruby 2.7.5p203
154-
155155
BUNDLED WITH
156-
2.3.8
156+
2.4.21

assets/javascripts/_playground/editor.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# backtick_javascript: true
2+
13
module Playground
24
class Editor
35
OPTIONS = { lineNumbers: true, theme: 'tomorrow-night-eighties' }

assets/javascripts/try.js.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# backtick_javascript: true
2+
13
require '_vendor/codemirror'
24
require '_vendor/ruby'
35
require '_vendor/javascript'

bin/build

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ system! "bundle exec middleman build --clean --verbose --no-parallel --bail --wa
1717
puts '~~~> Fetching updated docs...'
1818
FileUtils.mkpath 'build/docs'
1919
Dir.chdir 'docs' do
20-
system! "git fetch --all --verbose"
20+
system! "git fetch --refmap=+refs/heads/*:refs/remotes/origin/* --verbose origin gh-pages"
2121
end
2222

2323
puts '~~~> Extracting updated docs...'
24-
system! "git archive --remote ./.git/modules/docs/ origin/gh-pages -o docs.tar"
24+
system! "git archive --remote ./docs/ origin/gh-pages -o docs.tar"
2525
system! "tar --verbose --directory build/docs -xf docs.tar"

0 commit comments

Comments
 (0)