Skip to content

Commit a8c101f

Browse files
authored
Merge pull request #161 from github/publish-gem
Create pages-gem.yml
2 parents 120cc09 + 5ed3ef8 commit a8c101f

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

.github/workflows/pages-gem.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish Gem
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Setup Ruby
14+
uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: '3.2'
17+
- name: Build gem
18+
run: |
19+
gem build github-pages.gemspec
20+
- name: Publish
21+
run: |
22+
gem push github-pages.gem --key ${{ secrets.PAGES_GEM_PUBLISH }}

.github/workflows/push-cibuild.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ jobs:
88
fail-fast: false
99
matrix:
1010
ruby:
11-
- '2.6'
12-
- '2.7'
1311
- '3.0'
1412
- '3.1'
1513
- '3.2'

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818

1919
AllCops:
20-
TargetRubyVersion: 2.6
20+
TargetRubyVersion: 3.0
2121
Exclude:
2222
- 'bin/**/*'
2323
- 'script/**/*'

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.1
1+
3.2

script/cibuild-docker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
: ${RUBY_VERSION:="2.7"}
3+
: ${RUBY_VERSION:="3.2"}
44
docker build -t github-pages-health-check --build-arg RUBY_VERSION=$RUBY_VERSION .
55
if [ -n "$DEBUG" ]; then
66
# Run a shell.

0 commit comments

Comments
 (0)