Sha256: 5e7c1aead2e9c877177e81ee6d0400ef0a70dbb537613b9529a3464dcdbedecd

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

name: Bump version and Release
on:
  release:
    types: [published]
          
jobs:
  release:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: true

    steps:
    - uses: actions/checkout@master
      with:
        fetch-depth: 0 # otherwise, you will failed to push refs to dest repo

    - uses: actions/setup-ruby@v1
      with: 
        ruby-version: '2.6'
        
    - name: Get version from latest tag
      id: get_version
      uses: battila7/get-version-action@v2

    - name: Bump version    
      run: |
        gem install -N gem-release
        git config --local user.email "action@github.com"
        git config --local user.name "GitHub Action"
        gem bump --skip-ci --version ${{ steps.get_version.outputs.version-without-v }}
        git push origin HEAD:master
        
    - name: Release gem to rubygems.org    
      run: |
        set +x
        mkdir -p ~/.gem
        cat << EOF > ~/.gem/credentials
        ---
        :rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
        EOF
        chmod 0600 ~/.gem/credentials
        set -x
        gem release

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
finapps-5.0.41 .github/workflows/release.yml