-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (32 loc) · 911 Bytes
/
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
name: Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
package-name: itax_code
release-type: ruby
token: ${{secrets.GITHUB_TOKEN}}
version-file: "lib/itax_code/version.rb"
- uses: actions/checkout@v3
if: ${{steps.release.outputs.release_created}}
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.7.0
if: ${{steps.release.outputs.release_created}}
- run: bundle install
if: ${{steps.release.outputs.release_created}}
- run: ./bin/release
env:
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
if: ${{steps.release.outputs.release_created}}