Bump version to 1.65.0 #62
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
inputs: | |
next_version: | |
description: | | |
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc | |
required: true | |
default: 'skip' | |
jobs: | |
prepare: | |
uses: metanorma/ci/.github/workflows/prepare-rake.yml@main | |
prepare-ieee: | |
uses: ./.github/workflows/prepare.yml | |
secrets: | |
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }} | |
release: | |
runs-on: ubuntu-latest | |
needs: [ prepare, prepare-ieee ] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
git config user.name "metanorma-ci" | |
git config user.email "[email protected]" | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ needs.prepare.outputs.default-ruby-version }} | |
bundler-cache: true | |
- uses: actions/[email protected] | |
with: | |
name: ieee-test-input | |
path: ieee | |
- run: gem install gem-release | |
- if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip' | |
run: | | |
gem bump --version ${{ inputs.next_version }} --no-commit | |
rm -f bin/mnconvert.jar | |
bundle exec rake bin/mnconvert.jar | |
- run: bundle exec rake | |
- if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip' | |
run: | | |
git add -u bin/mnconvert.jar lib/mnconvert/version.rb | |
git commit -m "Bump version to ${{ inputs.next_version }}" | |
git tag v${{ inputs.next_version }} | |
git push origin HEAD:${GITHUB_REF} --tags | |
- uses: actions-mn/gem-release@main | |
with: | |
api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }} | |
release-command: gem release |