bens-hello-world 0.3.1 → 0.3.2

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: 1950e995a6c8e01bcc403d8a99c97eae3e83370504f74fb929511bb9c78973f1
4
- data.tar.gz: 53bc04a87b5f91744609642529d6e87c4b7e87ee5ebe99c8ab3d2701f19d59f2
3
+ metadata.gz: 27650248a27aae4d7cbd6da656e1ebeddaf6b215c7400e984f2f587e2792c671
4
+ data.tar.gz: e5e2923361358bcdc9d067ec1fa1b0ae2ee646175ff1e3d254c9331e78d8a3f2
5
5
  SHA512:
6
- metadata.gz: 8bed2da682afa8faa4c2489e213c208d98c33ff71b23c12e17914db704bbeb5fe3a270d567a8bee495733e2bf3384913594a47351d7b30896b00b2f4fd6b5ecd
7
- data.tar.gz: d8f2e7e3c732ed430882112efb317cfa1b3cbfd6e32c66eb72ba86f04fcd90b2c1cd349cc7342b9907d2ba8b092976d71127e8abe9ddcf61ffc1fc66d4f2d6f8
6
+ metadata.gz: 8407e67d4c32885008085c707b9d0650c592ebe03b398b8a78fc1a415ded5cd52ec640997b16ded72a591fa216f259b0a1e874028d01aa46c489c38c20114704
7
+ data.tar.gz: 604fde15cd3e8b9ad4ccac2dd493db196309e1c4b2dd28e29adf7d05c1a8d6606695170c3c51629bcd9dc2807e8d28f2b3b14ef9f427d9645294436a178b7015
@@ -2,32 +2,21 @@
2
2
  name: manual-release
3
3
 
4
4
  on:
5
- workflow_dispatch:
6
- inputs:
7
- logLevel:
8
- description: 'Log level'
9
- required: true
10
- default: 'warning'
11
- tags:
12
- description: 'Test scenario tags'
5
+ workflow_dispatch:
13
6
 
14
7
  jobs:
15
8
  manual-release:
16
9
  runs-on: ubuntu-latest
17
10
  steps:
18
-
19
- # Checkout code if release was created
11
+
20
12
  - uses: actions/checkout@v2
21
13
  # checks out the default branch (which is master)
22
-
23
- # Setup ruby if a release was created
14
+
24
15
  - uses: ruby/setup-ruby@v1
25
16
  with:
26
- ruby-version: 3.0.0
27
- # Bundle install
17
+ ruby-version: 3.0.0
28
18
  - run: bundle install
29
-
30
- ## One can choose the publish the gem when the release is created too
19
+
31
20
  - name: publish gem
32
21
  run: |
33
22
  mkdir -p $HOME/.gem
@@ -42,5 +31,24 @@ jobs:
42
31
  GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
43
32
 
44
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
+ })
45
53
 
46
54
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bens-hello-world (0.3.1)
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.3.1"
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.3.1
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.