Skip to content

Commit 91adadd

Browse files
authored
Create publish-gem.yml
1 parent 260db55 commit 91adadd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.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: '2.7.8'
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)