-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (55 loc) · 1.26 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Publish
on:
push:
branches:
- main
permissions:
contents: write
packages: write
jobs:
github:
name: GitHub
needs: tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3
bundler-cache: true
- name: Publish to GitHub
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
RUBYGEMS_HOST: https://rubygems.pkg.github.com/${{github.repository_owner}}
run: bin/release
rubygems:
name: RubyGems
needs: tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3
bundler-cache: true
- name: Publish to RubyGems
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_TOKEN}}"
run: bin/release
tag:
name: Git Tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3
bundler-cache: true
- name: Tag
run: bin/tag