Skip to content

Commit 2cb8449

Browse files
committed
Switch to GitHub Actions Pages deploy
1 parent 41fd2bb commit 2cb8449

File tree

4 files changed

+52
-9
lines changed

4 files changed

+52
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Ruby Setup
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
bundler-cache: true
29+
30+
- name: Build site with Middleman
31+
run: bundle exec middleman build
32+
33+
- name: Setup Pages
34+
uses: actions/configure-pages@v4
35+
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: 'build'
40+
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
runs-on: ubuntu-latest
46+
needs: build
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ source 'https://rubygems.org'
22

33
gem 'middleman'
44
gem 'middleman-favicon-maker'
5-
gem 'middleman-gh-pages'
5+
66
gem 'middleman-inline_svg'
77
gem 'middleman-livereload'
88
gem 'middleman-minify-html'
99
gem 'middleman-robots'
10-
gem "middleman-tailwind", github: "teaforthecat/middleman-tailwind", branch: "upgrade-execs-to-3.4.1"
10+
gem 'middleman-tailwind', github: 'teaforthecat/middleman-tailwind', branch: 'upgrade-execs-to-3.4.1'

Gemfile.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ GEM
103103
middleman-favicon-maker (4.1.0)
104104
favicon_maker (~> 1.3, >= 1.3.1)
105105
middleman-core (~> 4.0)
106-
middleman-gh-pages (0.4.1)
107-
rake (> 0.9.3)
108106
middleman-inline_svg (0.1.2)
109107
middleman-core (>= 3.4.1)
110108
nokogiri (>= 1.8)
@@ -139,7 +137,6 @@ GEM
139137
rack
140138
rackup (2.3.1)
141139
rack (>= 3)
142-
rake (13.3.1)
143140
rb-fsevent (0.11.2)
144141
rb-inotify (0.11.1)
145142
ffi (~> 1.0)
@@ -166,7 +163,6 @@ PLATFORMS
166163
DEPENDENCIES
167164
middleman
168165
middleman-favicon-maker
169-
middleman-gh-pages
170166
middleman-inline_svg
171167
middleman-livereload
172168
middleman-minify-html

Rakefile

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

0 commit comments

Comments
 (0)