unitsml 0.2.4 → 0.2.5
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.yml +11 -66
- data/lib/unitsml/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: 03b2a6214da74d2f202535a66b83ceb4d791b417cbb75d8d7014afea8d7c6c43
|
4
|
+
data.tar.gz: 462b872352f908d2e6d0cbefda1a3743a3d015185c74b891c07ed9880c45644a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffc12b0ce80125d25c8eb35ae1ff710bbc167dfe1a61f470e53f27ac2bf3223548cbdbd23951f4dfc31fce5150161f40bb769eb3c3d088e3e2ccab0fdbcc672e
|
7
|
+
data.tar.gz: af0356bfc0f7f00fc4971ce7bb2ed313b495950d5e0f3d1ef10925d2d85b77273efda223fc5fd76daf48e9d95f72fd57a3275364ec85c1fe72207de5866e3601
|
@@ -5,72 +5,17 @@ on:
|
|
5
5
|
inputs:
|
6
6
|
next_version:
|
7
7
|
description: |
|
8
|
-
Next release version. Possible values: x.y.z, major, minor, patch
|
9
|
-
Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version
|
8
|
+
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
10
9
|
required: true
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
default: 'skip'
|
11
|
+
repository_dispatch:
|
12
|
+
types: [ do-release ]
|
13
|
+
|
15
14
|
jobs:
|
16
15
|
release:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
submodules: true
|
24
|
-
|
25
|
-
- run: git fetch --tags origin
|
26
|
-
|
27
|
-
- if: ${{ env.HAVE_PAT_TOKEN == 'true' }}
|
28
|
-
uses: metanorma/ci/gh-rubygems-setup-action@main
|
29
|
-
with:
|
30
|
-
token: ${{ secrets.pat_token }}
|
31
|
-
|
32
|
-
# workaround for https://github.com/actions/runner-images/issues/37
|
33
|
-
- if: matrix.os == 'ubuntu-latest'
|
34
|
-
run: |
|
35
|
-
sudo apt-get update
|
36
|
-
sudo apt-get install libcurl4-openssl-dev
|
37
|
-
|
38
|
-
- uses: ruby/setup-ruby@v1
|
39
|
-
with:
|
40
|
-
ruby-version: '3.1'
|
41
|
-
bundler-cache: true
|
42
|
-
|
43
|
-
- run: |
|
44
|
-
git config user.name github-actions
|
45
|
-
git config user.email github-actions@github.com
|
46
|
-
|
47
|
-
- run: gem install gem-release
|
48
|
-
|
49
|
-
- run: gem bump --version ${{ inputs.next_version }} --tag --push
|
50
|
-
|
51
|
-
- name: publish to rubygems.org
|
52
|
-
env:
|
53
|
-
RUBYGEMS_API_KEY: ${{ secrets.UNITSML_CI_RUBYGEMS_API_KEY }}
|
54
|
-
run: |
|
55
|
-
mkdir -p ~/.gem
|
56
|
-
envsubst << 'EOF' > ~/.gem/credentials
|
57
|
-
---
|
58
|
-
:rubygems_api_key: ${RUBYGEMS_API_KEY}
|
59
|
-
EOF
|
60
|
-
chmod 0600 ~/.gem/credentials
|
61
|
-
bundle exec rake release
|
62
|
-
|
63
|
-
# This workflow usually called via repository_dispatch or direct workflow_dispatch
|
64
|
-
# in both cases `github.ref` doesn't reflect real version so we calculate it from gemspecfile
|
65
|
-
- name: get current gem ref
|
66
|
-
id: gem-tag-ref
|
67
|
-
run: |
|
68
|
-
GEM_VERSION=$(ruby -e "puts Gem::Specification.load(Dir.glob('*.gemspec').first).version.to_s")
|
69
|
-
echo "value=refs/tags/v${GEM_VERSION}" >> $GITHUB_OUTPUT
|
70
|
-
|
71
|
-
- uses: peter-evans/repository-dispatch@v2
|
72
|
-
with:
|
73
|
-
token: ${{ secrets.pat_token || github.token }}
|
74
|
-
repository: ${{ github.repository }}
|
75
|
-
event-type: release-passed
|
76
|
-
client-payload: '{"ref": "${{ steps.gem-tag-ref.outputs.value }}", "sha": "${{ github.sha }}", "type": "release-passed"}'
|
16
|
+
uses: metanorma/ci/.github/workflows/rubygems-release.yml@feature/submodules_for_release
|
17
|
+
with:
|
18
|
+
next_version: ${{ github.event.inputs.next_version }}
|
19
|
+
submodules: true
|
20
|
+
secrets:
|
21
|
+
rubygems-api-key: ${{ secrets.UNITSML_CI_RUBYGEMS_API_KEY }}
|
data/lib/unitsml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unitsml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plurimath
|