Skip to content

Commit 510cdf1

Browse files
authored
Merge pull request #34 from github/publish-gem
Create pages-gem.yml
2 parents 17d4ffe + ad215da commit 510cdf1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/pages-gem.yml

+22
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 }}

0 commit comments

Comments
 (0)