-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.16 KB
/
release.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
name: Release
on:
push:
tags:
- 'v*'
jobs:
homebrew:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Update Homebrew formula
uses: dawidd6/action-homebrew-bump-formula@v3
with:
# Required, custom GitHub access token with only the 'public_repo' scope
token: ${{secrets.TOKEN}}
# Optional, defaults to homebrew/core
tap: jltml/tap
# Formula name, required
formula: manymessage
# Optional, will be determined automatically
tag: ${{github.ref}}
# Optional, will be determined automatically
revision: ${{github.sha}}
# Optional, if don't want to check for already open PRs
force: false
rubygems:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Release Gem
if: contains(github.ref, 'refs/tags/v')
uses: cadwallion/publish-rubygems-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
RELEASE_COMMAND: "rake workflow:release:gem"