Sha256: 3f37269371e2d6d58555f70c83c86e4b48a9e90e0c4b5872bcca5cdec0dd7607
Contents?: true
Size: 1.87 KB
Versions: 9
Compression:
Stored size: 1.87 KB
Contents
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: release: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v3 with: token: ${{ secrets.METANORMA_CI_PAT_TOKEN }} - uses: ruby/setup-ruby@v1 with: ruby-version: '3.1' bundler-cache: true - if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip' run: | rm -f bin/mn2pdf.jar - run: bundle exec rake bin/mn2pdf.jar - run: bundle exec rake - run: gem install gem-release - run: | git config user.name "metanorma-ci" git config user.email "metanorma-ci@users.noreply.github.com" - if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip' run: | gem bump --version ${{ inputs.next_version }} --no-commit git add -u lib/mn2pdf/version.rb git commit -m "Bump version to ${mnconvert_VERSION}" git tag v${{ inputs.next_version }} git push origin HEAD:${GITHUB_REF} --tags - name: Publish to rubygems.org env: RUBYGEMS_API_KEY: ${{secrets.METANORMA_CI_RUBYGEMS_API_KEY}} run: | gem install gem-release mkdir -p ~/.gem cat > ~/.gem/credentials << EOF --- :rubygems_api_key: ${RUBYGEMS_API_KEY} EOF chmod 0600 ~/.gem/credentials gem release - if: failure() uses: JasonEtco/create-an-issue@v2 env: GITHUB_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }} with: assignees: CAMOBAP update_existing: true search_existing: all
Version data entries
9 entries across 9 versions & 1 rubygems