File tree Expand file tree Collapse file tree 2 files changed +24
-11
lines changed Expand file tree Collapse file tree 2 files changed +24
-11
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ name: Harmoniser Release
2
2
3
3
on :
4
4
push :
5
- branches : [ "master " ]
5
+ branches : [ "wadus " ]
6
6
7
7
jobs :
8
8
publish :
9
9
name : Publish
10
10
runs-on : ubuntu-latest
11
11
permissions :
12
- contents : read
12
+ contents : write
13
13
packages : write
14
14
15
15
steps :
@@ -19,13 +19,26 @@ jobs:
19
19
with :
20
20
ruby-version : 3.2.2
21
21
22
- - name : Publish to RubyGems
22
+ # - name: Publish to RubyGems
23
+ # run: |
24
+ # mkdir -p $HOME/.gem
25
+ # touch $HOME/.gem/credentials
26
+ # chmod 0600 $HOME/.gem/credentials
27
+ # printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
28
+ # gem build *.gemspec
29
+ # gem push *.gem
30
+ # env:
31
+ # GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
32
+
33
+ - name : Get version from gemspec
34
+ id : get_version
35
+ run : echo "{VERSION}={$(ruby -e 'puts Gem::Specification::load(\"harmoniser.gemspec\").version')}" >> $GITHUB_OUTPUT
36
+
37
+ - name : Create and Push Git Tag
23
38
run : |
24
- mkdir -p $HOME/.gem
25
- touch $HOME/.gem/credentials
26
- chmod 0600 $HOME/.gem/credentials
27
- printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
28
- gem build *.gemspec
29
- gem push *.gem
39
+ git config --global user.name "github-actions"
40
+ git config --global user.email "[email protected] "
41
+ git tag v${{ steps.get_version.outputs.VERSION }}
42
+ git push origin v${{ steps.get_version.outputs.VERSION }}
30
43
env :
31
- GEM_HOST_API_KEY : " ${{secrets.RUBYGEMS_AUTH_TOKEN}} "
44
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1
1
module Harmoniser
2
- VERSION = "0.9 .0"
2
+ VERSION = "0.0 .0"
3
3
end
You can’t perform that action at this time.
0 commit comments