-
Notifications
You must be signed in to change notification settings - Fork 21
62 lines (53 loc) · 1.67 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: release
on:
push:
branches:
- ca-sync-gem-versions
jobs:
release-please:
name: Create a release
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
# - name: Release
# id: release
# uses: google-github-actions/release-please-action@v3
# with:
# release-type: ruby
# package-name: release-please-action
# bump-minor-pre-major: true
# version-file: "judoscale-ruby/lib/judoscale/version.rb"
- name: Sync versions - checkout code
# if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- name: Sync versions - setup Ruby
# if: ${{ steps.release.outputs.release_created }}
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: Sync versions
# if: ${{ steps.release.outputs.release_created }}
run: |
bin/sync-versions
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add .
git commit -m "Sync versions"
git push
# publish:
# name: Publish to Rubygems
# needs: release-please
# runs-on: ubuntu-latest
# if: ${{ needs.release-please.outputs.release_created == 'true' }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Setup Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: 3.3
# - name: Publish gems
# env:
# GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
# run: bin/release