Sha256: dfb39c7b3f376dd629044b332d3a253faef1a9031fb2aa394bce019c2ac149ea

Contents?: true

Size: 899 Bytes

Versions: 12

Compression:

Stored size: 899 Bytes

Contents

name: Publish to RubyGems

on:
  [workflow_dispatch]

jobs:
  release:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    permissions:
      contents: write

    steps:
    - uses: actions/checkout@v2
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
    - name: Set up Ruby 3.0.1
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: 3.0.1
        bundler-cache: true
    - name: Publish to RubyGems
      run: |
        git config --local user.email "action@github.com"
        git config --local user.name "GitHub Action"

        mkdir -p $HOME/.gem
        touch $HOME/.gem/credentials
        chmod 0600 $HOME/.gem/credentials
        printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_TOKEN}\n" > $HOME/.gem/credentials
        bundle exec rake release
      env:
        RUBYGEMS_API_TOKEN: "${{secrets.RUBYGEMS_API_TOKEN}}"
        GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.7 .github/workflows/release.yml
procon_bypass_man-0.3.6 .github/workflows/release.yml
procon_bypass_man-0.3.5 .github/workflows/release.yml
procon_bypass_man-0.3.4 .github/workflows/release.yml
procon_bypass_man-0.3.3.1 .github/workflows/release.yml
procon_bypass_man-0.3.3 .github/workflows/release.yml
procon_bypass_man-0.3.2 .github/workflows/release.yml
procon_bypass_man-0.3.1 .github/workflows/release.yml
procon_bypass_man-0.3.0 .github/workflows/release.yml
procon_bypass_man-0.2.3 .github/workflows/release.yml
procon_bypass_man-0.2.2 .github/workflows/release.yml
procon_bypass_man-0.2.1 .github/workflows/release.yml