bens-hello-world 4.10.2 → 4.10.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/release-pagy.yml +41 -0
- data/Gemfile.lock +1 -1
- data/lib/bens/hello/world/version.rb +1 -1
- data/lib/javascripts/pagy.js +1 -1
- metadata +3 -3
- data/.github/workflows/publish-gem-and-tag.yml +0 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebe9ddd773c7713a2bd37531f2edb8bf4323843effd5d2c9070c39e4b707f331
|
4
|
+
data.tar.gz: 8e7b4519c2ab8e4384cabf4dd6f5326d1b21bcca99579449438e87e7aa93bcfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb9743f4010b6f1d4bf1e67d9fee6a9bbdd59815fdfc654be474bdee15b2f3469fc41c455a3e2e5952e5a7109dc287258b9aa5d9b6872e635d8ce4df11579dc5
|
7
|
+
data.tar.gz: 266508a87b71238b9a2f58f784ca7af0702ce54c24eaf140937942e410b001d6092d7964d5cc30a01cdbb8954b2b331cf01068a2057b2ba8ef530d6eb7dbf92f
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# This manual workflow build and push pagy to rubygems and creates a release tag at the current master commit
|
2
|
+
|
3
|
+
name: Release Pagy
|
4
|
+
on:
|
5
|
+
workflow_dispatch:
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
|
9
|
+
release-pagy:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v2 # checks out default branch
|
13
|
+
|
14
|
+
- uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: 3.0.0
|
17
|
+
- run: bundle install
|
18
|
+
|
19
|
+
- name: Build and push
|
20
|
+
run: |
|
21
|
+
mkdir -p $HOME/.gem
|
22
|
+
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_TOKEN}\n" > $HOME/.gem/credentials
|
23
|
+
chmod 0600 $HOME/.gem/credentials
|
24
|
+
gem build *.gemspec
|
25
|
+
gem push *.gem
|
26
|
+
env:
|
27
|
+
RUBYGEMS_TOKEN: "${{secrets.RUBYGEMS_TOKEN}}"
|
28
|
+
|
29
|
+
- name: Create the release tag
|
30
|
+
uses: actions/github-script@v3
|
31
|
+
with:
|
32
|
+
github-token: ${{ github.token }}
|
33
|
+
script: |
|
34
|
+
const fs = require("fs")
|
35
|
+
eval(fs.readFileSync("./lib/javascripts/pagy.js").toString())
|
36
|
+
github.git.createRef({
|
37
|
+
owner: context.repo.owner,
|
38
|
+
repo: context.repo.repo,
|
39
|
+
ref: `refs/tags/${Pagy.version}`,
|
40
|
+
sha: context.sha
|
41
|
+
})
|
data/Gemfile.lock
CHANGED
data/lib/javascripts/pagy.js
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: 4.10.
|
4
|
+
version: 4.10.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-08-
|
11
|
+
date: 2021-08-04 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.
|
@@ -18,7 +18,7 @@ executables: []
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- ".github/workflows/
|
21
|
+
- ".github/workflows/release-pagy.yml"
|
22
22
|
- ".github/workflows/release.yml"
|
23
23
|
- ".gitignore"
|
24
24
|
- ".rspec"
|
@@ -1,66 +0,0 @@
|
|
1
|
-
|
2
|
-
name: publish-gem-and-tag
|
3
|
-
|
4
|
-
on:
|
5
|
-
workflow_dispatch:
|
6
|
-
|
7
|
-
jobs:
|
8
|
-
publish-gem-and-tag:
|
9
|
-
runs-on: ubuntu-latest
|
10
|
-
|
11
|
-
steps:
|
12
|
-
|
13
|
-
- uses: actions/checkout@v2 # checks out default branch
|
14
|
-
|
15
|
-
- uses: ruby/setup-ruby@v1
|
16
|
-
with:
|
17
|
-
ruby-version: 3.0.0
|
18
|
-
- run: bundle install
|
19
|
-
|
20
|
-
- name: publish gem
|
21
|
-
run: |
|
22
|
-
mkdir -p $HOME/.gem
|
23
|
-
touch $HOME/.gem/credentials
|
24
|
-
chmod 0600 $HOME/.gem/credentials
|
25
|
-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
26
|
-
gem build *.gemspec
|
27
|
-
gem push *.gem
|
28
|
-
env:
|
29
|
-
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
30
|
-
|
31
|
-
# now, after the gem has been successfully published
|
32
|
-
# we would need to automatically tag based on the current commit
|
33
|
-
|
34
|
-
# # We wanna use this one for pagy
|
35
|
-
# echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/pagy.rb"))"
|
36
|
-
|
37
|
-
# - name: Get version number
|
38
|
-
# id: version
|
39
|
-
# run: |
|
40
|
-
# echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))"
|
41
|
-
# - name: Create tag
|
42
|
-
# uses: actions/github-script@v3
|
43
|
-
# with:
|
44
|
-
# github-token: ${{ github.token }}
|
45
|
-
# script: |
|
46
|
-
# github.git.createRef({
|
47
|
-
# owner: context.repo.owner,
|
48
|
-
# repo: context.repo.repo,
|
49
|
-
# ref: `refs/tags/${{steps.version.outputs.version}}`,
|
50
|
-
# sha: context.sha
|
51
|
-
# })
|
52
|
-
|
53
|
-
- name: Create tag
|
54
|
-
uses: actions/github-script@v3
|
55
|
-
with:
|
56
|
-
github-token: ${{ github.token }}
|
57
|
-
script: |
|
58
|
-
const fs = require("fs")
|
59
|
-
eval(fs.readFileSync("./lib/javascripts/pagy.js").toString())
|
60
|
-
|
61
|
-
github.git.createRef({
|
62
|
-
owner: context.repo.owner,
|
63
|
-
repo: context.repo.repo,
|
64
|
-
ref: `refs/tags/${Pagy.version}`,
|
65
|
-
sha: context.sha
|
66
|
-
})
|