bens-hello-world 0.3.3 → 0.3.7
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 +4 -4
- data/.github/workflows/manual-release.yml +14 -9
- data/Gemfile.lock +1 -1
- data/lib/bens/hello/world/version.rb +1 -1
- metadata +1 -2
- data/.github/workflows/main.yml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96ee654a3bff5ddfe15039a225bf588b28dfc29c4c90fa473b4a88447d19549f
|
4
|
+
data.tar.gz: 24c13a153c1692363dee756df4af758e731b8575d832d21e8b8e23b311be2113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5481798d82b380fec014ff2ec893b84fec25818768b1087140d691e31085f42fd47a8b3b279b23b8a1e47b9c576c180ee8233787343e5393b49824329bb57a44
|
7
|
+
data.tar.gz: 427cbbadf38b56772a47d4cb751d7411da3cc2b6c14fa7fc88c1a49f7413cb77f52f9a251a90abe95dfa4b2471ffab387cb8c0af7faa4afbaa7889ddcc8b4075
|
@@ -7,6 +7,7 @@ on:
|
|
7
7
|
jobs:
|
8
8
|
manual-release:
|
9
9
|
runs-on: ubuntu-latest
|
10
|
+
|
10
11
|
steps:
|
11
12
|
|
12
13
|
- uses: actions/checkout@v2
|
@@ -17,6 +18,7 @@ jobs:
|
|
17
18
|
ruby-version: 3.0.0
|
18
19
|
- run: bundle install
|
19
20
|
|
21
|
+
|
20
22
|
- name: publish gem
|
21
23
|
run: |
|
22
24
|
mkdir -p $HOME/.gem
|
@@ -30,15 +32,18 @@ jobs:
|
|
30
32
|
# if yours isn't named RUBYGEMS_AUTH_TOKEN
|
31
33
|
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
32
34
|
|
33
|
-
|
34
35
|
# now, after the gem has been successfully published
|
35
36
|
# 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" $(gem which pagy))"
|
37
|
+
# ideally we would read the version in the gem file and commit that.
|
41
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
|
+
|
42
|
+
# - name: Get version number
|
43
|
+
# id: version
|
44
|
+
# run: |
|
45
|
+
# echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))"
|
46
|
+
|
42
47
|
- name: Create tag
|
43
48
|
uses: actions/github-script@v3
|
44
49
|
with:
|
@@ -47,8 +52,8 @@ jobs:
|
|
47
52
|
github.git.createRef({
|
48
53
|
owner: context.repo.owner,
|
49
54
|
repo: context.repo.repo,
|
50
|
-
ref:
|
55
|
+
ref: "refs/tags/".concat(${{env.VERSION}}),
|
51
56
|
sha: context.sha
|
52
57
|
})
|
53
|
-
|
54
|
-
|
58
|
+
env:
|
59
|
+
VERSION: $(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))
|
data/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BK
|
@@ -18,7 +18,6 @@ executables: []
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- ".github/workflows/main.yml"
|
22
21
|
- ".github/workflows/manual-release.yml"
|
23
22
|
- ".github/workflows/release.yml"
|
24
23
|
- ".gitignore"
|
data/.github/workflows/main.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
name: Ruby
|
2
|
-
|
3
|
-
on: [push,pull_request]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
build:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
steps:
|
9
|
-
- uses: actions/checkout@v2
|
10
|
-
- name: Set up Ruby
|
11
|
-
uses: ruby/setup-ruby@v1
|
12
|
-
with:
|
13
|
-
ruby-version: 3.0.0
|
14
|
-
- name: Run the default task
|
15
|
-
run: |
|
16
|
-
gem install bundler -v 2.2.7
|
17
|
-
bundle install
|
18
|
-
bundle exec rake
|