@@ -80,66 +80,66 @@ jobs:
80
80
run : npm install
81
81
working-directory : .github/config
82
82
83
- # - name: Conventional Changelog Action
84
- # id: conventional_changelog
85
- # uses: TriPSs/conventional-changelog-action@v3
86
- # with:
87
- # github-token: ${{ github.token }}
88
- # git-message: 'chore(CHANGELOG): update for {version}'
89
- # git-user-name: ${{ github.actor }}
90
- # git-user-email: [email protected]
91
- # skip-version-file: true
92
- # release-count: 0
93
- # pre-changelog-generation: '.github/config/pre_changelog_hook.js'
94
- # config-file-path: '.github/config/config.js'
95
-
96
- # - name: Setup Ruby
97
- # if: steps.conventional_changelog.outputs.skipped == 'false'
98
- # uses: ruby/setup-ruby@v1
99
- # with:
100
- # ruby-version: ${{ env.RUBY_VER }}
101
-
102
- # - name: Install dependencies
103
- # run: |
104
- # bundle config deployment true
105
- # bundle install
106
-
107
- # - name: Build gem
108
- # if: steps.conventional_changelog.outputs.skipped == 'false'
109
- # run: gem build *.gemspec
110
-
111
- # - name: Publish to GitHub Package Registry
112
- # if: steps.conventional_changelog.outputs.skipped == 'false'
113
- # run: |
114
- # mkdir -p $HOME/.gem
115
- # touch $HOME/.gem/credentials
116
- # chmod 0600 $HOME/.gem/credentials
117
- # printf -- "---\n:github: Bearer ${GITHUB_TOKEN}\n" > $HOME/.gem/credentials
118
- # gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
119
- # env:
120
- # GITHUB_TOKEN: ${{ github.token }}
121
- # OWNER: ${{ github.actor }}
122
-
123
- # - name: Publish to RubyGems
124
- # if: steps.conventional_changelog.outputs.skipped == 'false'
125
- # run: |
126
- # mkdir -p $HOME/.gem
127
- # touch $HOME/.gem/credentials
128
- # chmod 0600 $HOME/.gem/credentials
129
- # printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
130
- # gem push *.gem
131
- # env:
132
- # GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
133
-
134
- # - name: Create GitHub Release
135
- # if: steps.conventional_changelog.outputs.skipped == 'false'
136
- # uses: ncipollo/release-action@v1
137
- # with:
138
- # token: ${{ github.token }}
139
- # tag: ${{ steps.conventional_changelog.outputs.tag }}
140
- # body: ${{ steps.conventional_changelog.outputs.changelog }}
141
- # artifacts: '*.gem'
142
-
143
- # - name: Publish to cocoapods plugins
144
- # if: steps.conventional_changelog.outputs.skipped == 'false'
145
- # run: bundle exec rake publish
83
+ - name : Conventional Changelog Action
84
+ id : conventional_changelog
85
+ uses : TriPSs/conventional-changelog-action@v3
86
+ with :
87
+ github-token : ${{ github.token }}
88
+ git-message : ' chore(CHANGELOG): update for {version}'
89
+ git-user-name : ${{ github.actor }}
90
+
91
+ skip-version-file : true
92
+ release-count : 0
93
+ pre-changelog-generation : ' .github/config/pre_changelog_hook.js'
94
+ config-file-path : ' .github/config/config.js'
95
+
96
+ - name : Setup Ruby
97
+ if : steps.conventional_changelog.outputs.skipped == 'false'
98
+ uses : ruby/setup-ruby@v1
99
+ with :
100
+ ruby-version : ${{ env.RUBY_VER }}
101
+
102
+ - name : Install dependencies
103
+ run : |
104
+ bundle config deployment true
105
+ bundle install
106
+
107
+ - name : Build gem
108
+ if : steps.conventional_changelog.outputs.skipped == 'false'
109
+ run : gem build *.gemspec
110
+
111
+ - name : Publish to GitHub Package Registry
112
+ if : steps.conventional_changelog.outputs.skipped == 'false'
113
+ run : |
114
+ mkdir -p $HOME/.gem
115
+ touch $HOME/.gem/credentials
116
+ chmod 0600 $HOME/.gem/credentials
117
+ printf -- "---\n:github: Bearer ${GITHUB_TOKEN}\n" > $HOME/.gem/credentials
118
+ gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
119
+ env :
120
+ GITHUB_TOKEN : ${{ github.token }}
121
+ OWNER : ${{ github.actor }}
122
+
123
+ - name : Publish to RubyGems
124
+ if : steps.conventional_changelog.outputs.skipped == 'false'
125
+ run : |
126
+ mkdir -p $HOME/.gem
127
+ touch $HOME/.gem/credentials
128
+ chmod 0600 $HOME/.gem/credentials
129
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
130
+ gem push *.gem
131
+ env :
132
+ GEM_HOST_API_KEY : ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
133
+
134
+ - name : Create GitHub Release
135
+ if : steps.conventional_changelog.outputs.skipped == 'false'
136
+ uses : ncipollo/release-action@v1
137
+ with :
138
+ token : ${{ github.token }}
139
+ tag : ${{ steps.conventional_changelog.outputs.tag }}
140
+ body : ${{ steps.conventional_changelog.outputs.changelog }}
141
+ artifacts : ' *.gem'
142
+
143
+ - name : Publish to cocoapods plugins
144
+ if : steps.conventional_changelog.outputs.skipped == 'false'
145
+ run : bundle exec rake publish
0 commit comments