mn2pdf 1.60 → 1.61

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c6297825880b7b23b8d6cddd372971f5158e2068d302d26a6b04dc84c6d10bc
4
- data.tar.gz: 0e2d1081620f1eabe105ae206b9dd6b3585ddc1b9b89f496985d0451e686dd01
3
+ metadata.gz: 3a95b00ff399d1f532cfac0a2785cc5cd36004a25e8e9329ad165d124653efa2
4
+ data.tar.gz: f621e0bbbe47226261130370cf79035f2825c6799992d0b674c05b759d9cbfaf
5
5
  SHA512:
6
- metadata.gz: ffc70045450621b338c1f093a2defa15a525081dbf38f3221f73b0fd38a02bcccc78f01ffb61d4991655616e2df6ddbf880b1544985cb0338becfd3b40b74246
7
- data.tar.gz: 9917e26f6c7adae11a261d09978097a798d000a26d7cbb7a7110fe582f26f9d1b623a26821c0f01c2bd3dfb717a2bb190aaf508480f6b82e2ba80399a894da0c
6
+ metadata.gz: 314b5a9a177212e5c216fc56e79f347673153ed6e8fed5ee725da9a1be26a89ab2dce0853297c16de4a2fd4b32582f17ea947ce0eb4f7601e42977008c350b08
7
+ data.tar.gz: 3aeec3bd0570347dabc722d205c7fe0a7ca0890a2a0c6837263799a79d656585ed3131bcaaaff40db631e38c42300ce6e4e1068719af64a8db25daf19e5d1252
@@ -5,14 +5,22 @@ on:
5
5
  types: [ metanorma/mn2pdf ]
6
6
 
7
7
  jobs:
8
- tag_repo:
9
- runs-on: ubuntu-18.04
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: '3.1'
31
+ ruby-version: ${{ needs.prepare.outputs.default-ruby-version }}
24
32
  bundler-cache: true
25
33
 
26
- - run: gem install gem-release
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-18.04
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: '3.1'
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 ${mnconvert_VERSION}"
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
- - name: Publish to rubygems.org
51
- env:
52
- RUBYGEMS_API_KEY: ${{secrets.METANORMA_CI_RUBYGEMS_API_KEY}}
53
- run: |
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
@@ -1,4 +1,4 @@
1
1
  module Mn2pdf
2
- VERSION = "1.60".freeze
2
+ VERSION = "1.61".freeze
3
3
  MN2PDF_JAR_VERSION = VERSION
4
4
  end
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.60'
4
+ version: '1.61'
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-18 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  mn2pdf converts Metanorma XML into PDF.