Skip to content

Commit 748f4ec

Browse files
authored
Merge pull request #82 from pages-themes/pubish-gem
Create publish-gem.yml
2 parents 6e9de10 + fe4daa4 commit 748f4ec

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v2
1111
- uses: ruby/setup-ruby@v1
1212
with:
13-
ruby-version: 2.7
13+
ruby-version: 3.2
1414
bundler-cache: true
1515
- name: build
1616
run: script/bootstrap

.github/workflows/publish-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 }}

docs/CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ At a high level, [the process for proposing changes](https://guides.github.com/i
7777

7878
`script/cibuild`
7979

80+
## Publishing Gem
81+
In order to publish the Gem bump the version in *this file*, commit, create a tag with the new version number, and finally push the commit and tag to the repo.
82+
8083
## Code of conduct
8184

8285
This project is governed by [the Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.

script/validate-html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def validate(file)
2020

2121
return puts "Valid!" if results.errors.empty?
2222

23-
results.errors.each { |err| puts err.to_s }
23+
results.errors.each { |err| puts err }
2424
exit 1
2525
end
2626

0 commit comments

Comments
 (0)