bens-hello-world 0.2.9 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d12eadcee1698658f669ee8481cf2c5d46dcc66741e7227b585e2ec7a948ac82
4
- data.tar.gz: 1e2bad5048749041c8cdea42c260035773bed65b0846f42891690e5b8b41b70f
3
+ metadata.gz: 27650248a27aae4d7cbd6da656e1ebeddaf6b215c7400e984f2f587e2792c671
4
+ data.tar.gz: e5e2923361358bcdc9d067ec1fa1b0ae2ee646175ff1e3d254c9331e78d8a3f2
5
5
  SHA512:
6
- metadata.gz: d0b096f23d81dc23536d36cf738c21e8ec1a2023c554e82efd882eb0b89b49febc90859eb0cb897e4fec85c49a222ba5f259c2354eb0d17445d8d38dc463a41f
7
- data.tar.gz: ffa4c8ccd5b476137b74f682e9f11e8d1fbed83133281e8313e099030d373c7fbf934b5a5bfe8aabc798d96cc3656995146474a44025be6a5d917d48f6abe9fa
6
+ metadata.gz: 8407e67d4c32885008085c707b9d0650c592ebe03b398b8a78fc1a415ded5cd52ec640997b16ded72a591fa216f259b0a1e874028d01aa46c489c38c20114704
7
+ data.tar.gz: 604fde15cd3e8b9ad4ccac2dd493db196309e1c4b2dd28e29adf7d05c1a8d6606695170c3c51629bcd9dc2807e8d28f2b3b14ef9f427d9645294436a178b7015
@@ -0,0 +1,54 @@
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
+ - name: publish gem
21
+ run: |
22
+ mkdir -p $HOME/.gem
23
+ touch $HOME/.gem/credentials
24
+ chmod 0600 $HOME/.gem/credentials
25
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
26
+ gem build *.gemspec
27
+ gem push *.gem
28
+ env:
29
+ # Make sure to update the secret name
30
+ # if yours isn't named RUBYGEMS_AUTH_TOKEN
31
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
32
+
33
+
34
+ # now, after the gem has been successfully published
35
+ # we would need to automatically tag based on the current commit
36
+ # ideally we would read the version in the gem file and commit that.
37
+ - name: Get version number
38
+ id: version
39
+ run: |
40
+ echo "::set-output version = $(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" lib/pagy.rb)"
41
+
42
+ - name: Create tag
43
+ uses: actions/github-script@v3
44
+ with:
45
+ github-token: ${{ github.token }}
46
+ script: |
47
+ github.git.createRef({
48
+ owner: context.repo.owner,
49
+ repo: context.repo.repo,
50
+ ref: `refs/tags/${{steps.version.outputs.version}}`,
51
+ sha: context.sha
52
+ })
53
+
54
+
@@ -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,31 @@
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
+
11
+ ## [0.3.0](https://www.github.com/benkoshy/bens-hello-world/compare/v0.2.10...v0.3.0) (2021-07-28)
12
+
13
+
14
+ ### ⚠ BREAKING CHANGES
15
+
16
+ * randomly change version number
17
+
18
+ ### Bug Fixes
19
+
20
+ * randomly change version number ([1b61552](https://www.github.com/benkoshy/bens-hello-world/commit/1b6155258fe7b020e302d91f68ab4ab61797e657))
21
+
22
+ ### [0.2.10](https://www.github.com/benkoshy/bens-hello-world/compare/v0.2.9...v0.2.10) (2021-07-28)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * seeing whether a release occurs here ([02e244b](https://www.github.com/benkoshy/bens-hello-world/commit/02e244b9f3592711b98695ade74dbb06d81c31aa))
28
+
3
29
  ### [0.2.9](https://www.github.com/benkoshy/bens-hello-world/compare/v0.2.8...v0.2.9) (2021-07-28)
4
30
 
5
31
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bens-hello-world (0.2.9)
4
+ bens-hello-world (0.3.2)
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.2.9"
4
+ VERSION = "0.3.2"
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.2.9
4
+ version: 0.3.2
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"