Sha256: d847f5d86ce6b7b18a8f40f2f673ce1b513d6662d2c6747ce37bfa9ef57c20bd
Contents?: true
Size: 1.93 KB
Versions: 6
Compression:
Stored size: 1.93 KB
Contents
name: Push & Release Gem Gem on: workflow_dispatch: inputs: bump_type: type: choice description: "Bump Type ( Choosing None will bump build number and keep the same version )" default: "patch" options: - patch - minor - major permissions: contents: read jobs: build: name: Build gem runs-on: ubuntu-latest permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag steps: # Set up - uses: actions/checkout@v4 - name: set git config env: GH_TOKEN: ${{ github.token }} run: | git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com" git config --global user.name "$(gh api /users/${GITHUB_ACTOR} | jq .name -r)" git config -l - name: Set up Ruby uses: ruby/setup-ruby@v1 with: bundler-cache: true ruby-version: ruby - name: Install the gem-release run: gem install gem-release - name: Bump the gem run: gem bump ${{ github.events.inputs.bump_type }} - name: Push the new version run: git push release: name: Release gem runs-on: ubuntu-latest needs: build permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag steps: - uses: actions/checkout@v4 - name: Git Pull run: git pull - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ruby - name: Remove lock on bundle run: bundle config set frozen false - uses: rubygems/release-gem@v1 with: await-release: false
Version data entries
6 entries across 6 versions & 1 rubygems