bens-hello-world 0.3.0 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de5e4980cf622b046208042671f1032de6da7a170f7bbc686885ed352cfa22e0
4
- data.tar.gz: 9da3da6211b75ffb1ad24a5c34108e64cd64cfa3971c7c0ea9dd3073e1eea7a6
3
+ metadata.gz: dd17bd0fd5bc207248da4ba24ea4ec5fbb8b0279db37c514c99fd713336f4fd1
4
+ data.tar.gz: 9ef27e30dca496b969cefc42a814ece1a055ffd7db5bc520ab4febd250cd38fb
5
5
  SHA512:
6
- metadata.gz: f155af84abbf879c1d49a1c8a73ed8b423446f670af42fe92998721b672aa24e5008826c0fbfe4026f77d99f795d1e3799ea7c453c9addc6d14f413f6f1b3385
7
- data.tar.gz: 5224831c2eb0b6d20622b80c0d9e806c0de549a7ba95b1949c28e5b0e1b18942af628dd0604dc2627700a2ba8abf331be3b1829e5e2bf64ab15694e3b354865b
6
+ metadata.gz: 8fbae97d908860a3fefbd60ecf43ab9a835212db50a5488a95387df844676907c0e0f37c1606b29f12800d7c6a7a8f25071a069c5a91d90524ccf2263a495836
7
+ data.tar.gz: 16bf68b6e789b7c0fff71f62dcfc65bb9f041d1386a968d6f5f72b54c268b0aad674c607b71f49761374320cd20ecb3e55a32703b31c0aba7992080906c024cb
@@ -0,0 +1,60 @@
1
+
2
+ name: manual-release
3
+
4
+ on:
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ manual-release:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+
12
+ - uses: actions/checkout@v2
13
+ # checks out the default branch (which is master)
14
+
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 3.0.0
18
+ - run: bundle install
19
+
20
+
21
+ - name: publish gem
22
+ run: |
23
+ mkdir -p $HOME/.gem
24
+ touch $HOME/.gem/credentials
25
+ chmod 0600 $HOME/.gem/credentials
26
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
27
+ gem build *.gemspec
28
+ gem push *.gem
29
+ env:
30
+ # Make sure to update the secret name
31
+ # if yours isn't named RUBYGEMS_AUTH_TOKEN
32
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
33
+
34
+
35
+ # now, after the gem has been successfully published
36
+ # we would need to automatically tag based on the current commit
37
+ # ideally we would read the version in the gem file and commit that.
38
+
39
+ ## We wanna use this one for pagy
40
+ # echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/pagy.rb"))"
41
+ - name: Get version number
42
+ id: version
43
+ run: |
44
+ echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))"
45
+
46
+
47
+
48
+ - name: Create tag
49
+ uses: actions/github-script@v3
50
+ with:
51
+ github-token: ${{ github.token }}
52
+ script: |
53
+ github.git.createRef({
54
+ owner: context.repo.owner,
55
+ repo: context.repo.repo,
56
+ ref: `refs/tags/${{steps.version.outputs.version}}`,
57
+ sha: context.sha
58
+ })
59
+
60
+
@@ -34,19 +34,19 @@ jobs:
34
34
  - run: bundle install
35
35
  if: ${{ steps.release.outputs.release_created }}
36
36
 
37
- ## One can choose the publish the gem when the release is created too
38
- - name: publish gem
39
- run: |
40
- mkdir -p $HOME/.gem
41
- touch $HOME/.gem/credentials
42
- chmod 0600 $HOME/.gem/credentials
43
- printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
44
- gem build *.gemspec
45
- gem push *.gem
46
- env:
47
- # Make sure to update the secret name
48
- # if yours isn't named RUBYGEMS_AUTH_TOKEN
49
- GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
50
- if: ${{ steps.release.outputs.release_created }}
37
+ # ## One can choose the publish the gem when the release is created too
38
+ # - name: publish gem
39
+ # run: |
40
+ # mkdir -p $HOME/.gem
41
+ # touch $HOME/.gem/credentials
42
+ # chmod 0600 $HOME/.gem/credentials
43
+ # printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
44
+ # gem build *.gemspec
45
+ # gem push *.gem
46
+ # env:
47
+ # # Make sure to update the secret name
48
+ # # if yours isn't named RUBYGEMS_AUTH_TOKEN
49
+ # GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
50
+ # if: ${{ steps.release.outputs.release_created }}
51
51
 
52
52
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ### [0.3.1](https://www.github.com/benkoshy/bens-hello-world/compare/v0.3.0...v0.3.1) (2021-07-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * add manual release ([df810f3](https://www.github.com/benkoshy/bens-hello-world/commit/df810f3fbda089e64d0be1e6d423de04ce2495d4))
9
+ * remove the action which pushes to ruby gems ([69febac](https://www.github.com/benkoshy/bens-hello-world/commit/69febacd7d7091823aeb25e89f2e08f84f7d0c1f))
10
+
3
11
  ## [0.3.0](https://www.github.com/benkoshy/bens-hello-world/compare/v0.2.10...v0.3.0) (2021-07-28)
4
12
 
5
13
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bens-hello-world (0.3.0)
4
+ bens-hello-world (0.3.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  module Bens
2
2
  module Hello
3
3
  module World
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.4"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bens-hello-world
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - BK
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-28 00:00:00.000000000 Z
11
+ date: 2021-07-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is a pure dummy gem. Hello world. We wanna test out github actions
14
14
  and publishing ruby gems.
@@ -19,6 +19,7 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - ".github/workflows/main.yml"
22
+ - ".github/workflows/manual-release.yml"
22
23
  - ".github/workflows/release.yml"
23
24
  - ".gitignore"
24
25
  - ".rspec"