mn2pdf 1.60 → 1.62
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-tag.yml +16 -10
- data/.github/workflows/release.yml +16 -24
- data/bin/mn2pdf.jar +0 -0
- data/lib/mn2pdf/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: cc6978a2d6f90c8fe16e3fe7409af92dfadd8cab35d7d94157ea38a19b34a1a7
|
4
|
+
data.tar.gz: 2ec44dee196ee1aa5157d7d46c706a318d9cfdb3bf40260b095a5300fb5f1115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60aba1335f3bc599799a69f40bc49a8a739701e0902daf9e82c98aef8343ce787b7e5317b96ac59d1c8ce336648a2df192dec1315694b8608934252ef41408bd
|
7
|
+
data.tar.gz: 52ef2b4dc662114f4f679c1b0ecb57e0b1a5cf99a3aaee33bd06c344b670cd09bb24116a2d47c7cf3b06efcb73e1709171f0752484f7cea00edd1cf30636f7d6
|
@@ -5,14 +5,22 @@ on:
|
|
5
5
|
types: [ metanorma/mn2pdf ]
|
6
6
|
|
7
7
|
jobs:
|
8
|
-
|
9
|
-
|
8
|
+
prepare:
|
9
|
+
uses: metanorma/ci/.github/workflows/prepare-rake.yml@main
|
10
|
+
|
11
|
+
tag-repo:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
needs: prepare
|
10
14
|
if: startsWith(github.event.client_payload.ref, 'refs/tags/v')
|
11
15
|
steps:
|
12
16
|
- uses: actions/checkout@v3
|
13
17
|
with:
|
14
18
|
token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
15
19
|
|
20
|
+
- run: |
|
21
|
+
git config --global user.name "metanorma-ci"
|
22
|
+
git config --global user.email "metanorma-ci@users.noreply.github.com"
|
23
|
+
|
16
24
|
- name: Parse mn2pdf version
|
17
25
|
env:
|
18
26
|
MN2PDF_TAG: ${{ github.event.client_payload.ref }}
|
@@ -20,21 +28,19 @@ jobs:
|
|
20
28
|
|
21
29
|
- uses: ruby/setup-ruby@v1
|
22
30
|
with:
|
23
|
-
ruby-version:
|
31
|
+
ruby-version: ${{ needs.prepare.outputs.default-ruby-version }}
|
24
32
|
bundler-cache: true
|
25
33
|
|
26
|
-
- run:
|
27
|
-
|
28
|
-
- run: gem bump --version ${MN2PDF_VERSION} --no-commit
|
29
|
-
|
30
|
-
- run: bundle exec rake bin/mn2pdf.jar
|
34
|
+
- run: rm -f bin/mn2pdf.jar
|
31
35
|
|
32
36
|
- run: bundle exec rake
|
33
37
|
|
38
|
+
- run: |
|
39
|
+
gem install gem-release
|
40
|
+
gem bump --version ${MN2PDF_VERSION} --no-commit
|
41
|
+
|
34
42
|
- name: Push commit and tag
|
35
43
|
run: |
|
36
|
-
git config --global user.name "metanorma-ci"
|
37
|
-
git config --global user.email "metanorma-ci@users.noreply.github.com"
|
38
44
|
git add -u lib/mn2pdf/version.rb
|
39
45
|
git commit -m "Bump version to ${MN2PDF_VERSION}"
|
40
46
|
git tag v${MN2PDF_VERSION}
|
@@ -13,52 +13,45 @@ on:
|
|
13
13
|
default: 'skip'
|
14
14
|
|
15
15
|
jobs:
|
16
|
+
prepare:
|
17
|
+
uses: metanorma/ci/.github/workflows/prepare-rake.yml@main
|
18
|
+
|
16
19
|
release:
|
17
|
-
runs-on: ubuntu-
|
20
|
+
runs-on: ubuntu-latest
|
21
|
+
needs: prepare
|
18
22
|
steps:
|
19
23
|
- uses: actions/checkout@v3
|
20
24
|
with:
|
21
25
|
token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
22
26
|
|
27
|
+
- run: |
|
28
|
+
git config user.name "metanorma-ci"
|
29
|
+
git config user.email "metanorma-ci@users.noreply.github.com"
|
30
|
+
|
23
31
|
- uses: ruby/setup-ruby@v1
|
24
32
|
with:
|
25
|
-
ruby-version:
|
33
|
+
ruby-version: ${{ needs.prepare.outputs.default-ruby-version }}
|
26
34
|
bundler-cache: true
|
27
35
|
|
28
36
|
- if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip'
|
29
|
-
run:
|
30
|
-
rm -f bin/mn2pdf.jar
|
31
|
-
|
32
|
-
- run: bundle exec rake bin/mn2pdf.jar
|
37
|
+
run: rm -f bin/mn2pdf.jar
|
33
38
|
|
34
39
|
- run: bundle exec rake
|
35
40
|
|
36
41
|
- run: gem install gem-release
|
37
42
|
|
38
|
-
- run: |
|
39
|
-
git config user.name "metanorma-ci"
|
40
|
-
git config user.email "metanorma-ci@users.noreply.github.com"
|
41
|
-
|
42
43
|
- if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip'
|
43
44
|
run: |
|
44
45
|
gem bump --version ${{ inputs.next_version }} --no-commit
|
45
46
|
git add -u lib/mn2pdf/version.rb
|
46
|
-
git commit -m "Bump version to ${
|
47
|
+
git commit -m "Bump version to ${{ inputs.next_version }}"
|
47
48
|
git tag v${{ inputs.next_version }}
|
48
49
|
git push origin HEAD:${GITHUB_REF} --tags
|
49
50
|
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
gem install gem-release
|
55
|
-
mkdir -p ~/.gem
|
56
|
-
cat > ~/.gem/credentials << EOF
|
57
|
-
---
|
58
|
-
:rubygems_api_key: ${RUBYGEMS_API_KEY}
|
59
|
-
EOF
|
60
|
-
chmod 0600 ~/.gem/credentials
|
61
|
-
gem release
|
51
|
+
- uses: actions-mn/gem-release@main
|
52
|
+
with:
|
53
|
+
api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
|
54
|
+
release-command: gem release
|
62
55
|
|
63
56
|
- if: failure()
|
64
57
|
uses: JasonEtco/create-an-issue@v2
|
@@ -68,4 +61,3 @@ jobs:
|
|
68
61
|
assignees: CAMOBAP
|
69
62
|
update_existing: true
|
70
63
|
search_existing: all
|
71
|
-
|
data/bin/mn2pdf.jar
CHANGED
Binary file
|
data/lib/mn2pdf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mn2pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.62'
|
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-02-
|
11
|
+
date: 2023-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
mn2pdf converts Metanorma XML into PDF.
|