bens-hello-world 0.3.2 → 0.3.6
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 +12 -6
- data/Gemfile.lock +1 -1
- data/lib/bens/hello/world/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1140a069caec139a5831995301f6ac5e22b3db7e937267264d839ba0055af14c
|
4
|
+
data.tar.gz: 56f454a2d4cf36627cd48a3e180e7f75a9e2e0f7ab8d9aa6907eca9a05ff88a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f07507f52fdadb163f10f21e05005f8149a3fdda720141707fd1db5352a903aa19b36af5e9e1ed2545579597b6b56fd311eca5dd9b3c2bde3daedd111573c188
|
7
|
+
data.tar.gz: eab034787befff23ec4aa7b7843c6ed15d91bf55df7d5a45d23ba3b41f478bc73cd3f537be821d1a28527c7bf41877ddd5e6235af211ecb090e606979bf05572
|
@@ -7,6 +7,8 @@ on:
|
|
7
7
|
jobs:
|
8
8
|
manual-release:
|
9
9
|
runs-on: ubuntu-latest
|
10
|
+
env:
|
11
|
+
VERSION: $(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))
|
10
12
|
steps:
|
11
13
|
|
12
14
|
- uses: actions/checkout@v2
|
@@ -17,6 +19,7 @@ jobs:
|
|
17
19
|
ruby-version: 3.0.0
|
18
20
|
- run: bundle install
|
19
21
|
|
22
|
+
|
20
23
|
- name: publish gem
|
21
24
|
run: |
|
22
25
|
mkdir -p $HOME/.gem
|
@@ -30,15 +33,18 @@ jobs:
|
|
30
33
|
# if yours isn't named RUBYGEMS_AUTH_TOKEN
|
31
34
|
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
32
35
|
|
33
|
-
|
34
36
|
# now, after the gem has been successfully published
|
35
37
|
# we would need to automatically tag based on the current commit
|
36
38
|
# 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
39
|
|
40
|
+
## We wanna use this one for pagy
|
41
|
+
# echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/pagy.rb"))"
|
42
|
+
|
43
|
+
# - name: Get version number
|
44
|
+
# id: version
|
45
|
+
# run: |
|
46
|
+
# echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))"
|
47
|
+
|
42
48
|
- name: Create tag
|
43
49
|
uses: actions/github-script@v3
|
44
50
|
with:
|
@@ -47,7 +53,7 @@ jobs:
|
|
47
53
|
github.git.createRef({
|
48
54
|
owner: context.repo.owner,
|
49
55
|
repo: context.repo.repo,
|
50
|
-
ref:
|
56
|
+
ref: "refs/tags/".concat(${{env.VERSION}}),
|
51
57
|
sha: context.sha
|
52
58
|
})
|
53
59
|
|
data/Gemfile.lock
CHANGED