bens-hello-world 0.3.0 → 0.3.4
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 +60 -0
- data/.github/workflows/release.yml +14 -14
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/lib/bens/hello/world/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd17bd0fd5bc207248da4ba24ea4ec5fbb8b0279db37c514c99fd713336f4fd1
|
4
|
+
data.tar.gz: 9ef27e30dca496b969cefc42a814ece1a055ffd7db5bc520ab4febd250cd38fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fbae97d908860a3fefbd60ecf43ab9a835212db50a5488a95387df844676907c0e0f37c1606b29f12800d7c6a7a8f25071a069c5a91d90524ccf2263a495836
|
7
|
+
data.tar.gz: 16bf68b6e789b7c0fff71f62dcfc65bb9f041d1386a968d6f5f72b54c268b0aad674c607b71f49761374320cd20ecb3e55a32703b31c0aba7992080906c024cb
|
@@ -0,0 +1,60 @@
|
|
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
|
+
|
21
|
+
- name: publish gem
|
22
|
+
run: |
|
23
|
+
mkdir -p $HOME/.gem
|
24
|
+
touch $HOME/.gem/credentials
|
25
|
+
chmod 0600 $HOME/.gem/credentials
|
26
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
27
|
+
gem build *.gemspec
|
28
|
+
gem push *.gem
|
29
|
+
env:
|
30
|
+
# Make sure to update the secret name
|
31
|
+
# if yours isn't named RUBYGEMS_AUTH_TOKEN
|
32
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
33
|
+
|
34
|
+
|
35
|
+
# now, after the gem has been successfully published
|
36
|
+
# we would need to automatically tag based on the current commit
|
37
|
+
# ideally we would read the version in the gem file and commit that.
|
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
|
+
- name: Get version number
|
42
|
+
id: version
|
43
|
+
run: |
|
44
|
+
echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))"
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
- name: Create tag
|
49
|
+
uses: actions/github-script@v3
|
50
|
+
with:
|
51
|
+
github-token: ${{ github.token }}
|
52
|
+
script: |
|
53
|
+
github.git.createRef({
|
54
|
+
owner: context.repo.owner,
|
55
|
+
repo: context.repo.repo,
|
56
|
+
ref: `refs/tags/${{steps.version.outputs.version}}`,
|
57
|
+
sha: context.sha
|
58
|
+
})
|
59
|
+
|
60
|
+
|
@@ -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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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,13 @@
|
|
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
|
+
|
3
11
|
## [0.3.0](https://www.github.com/benkoshy/bens-hello-world/compare/v0.2.10...v0.3.0) (2021-07-28)
|
4
12
|
|
5
13
|
|
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.4
|
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.
|
@@ -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"
|