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 +4 -4
- data/.github/workflows/manual-release.yml +24 -16
- data/Gemfile.lock +1 -1
- data/lib/bens/hello/world/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27650248a27aae4d7cbd6da656e1ebeddaf6b215c7400e984f2f587e2792c671
|
4
|
+
data.tar.gz: e5e2923361358bcdc9d067ec1fa1b0ae2ee646175ff1e3d254c9331e78d8a3f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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-
|
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.
|