Sha256: b8c97d06005a6049963ffeb4f35789c2b16f3edb9fe04d820551419dece505bc

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 KB

Contents

name: Release

on:
  push:
    branches:
      - main
jobs:
  release-please:
    runs-on: ubuntu-latest
    steps:
      - uses: GoogleCloudPlatform/release-please-action@v2
        id: release
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          release-type: ruby
          package-name: bridgetown-plausible
          bump-minor-pre-major: true
          version-file: "lib/bridgetown-plausible/version.rb"
      - uses: actions/checkout@v2
        if: ${{ steps.release.outputs.release_created }}
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.0.0
        if: ${{ steps.release.outputs.release_created }}
      - run: |
          gem install bundler -v 2.2.7
          bundle install
          bundle exec rake
        if: ${{ steps.release.outputs.release_created }}
      - name: release gem
        run: |
          mkdir -p $HOME/.gem
          touch $HOME/.gem/credentials
          chmod 0600 $HOME/.gem/credentials
          printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
          gem build *.gemspec
          gem push *.gem
        env:
          GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
        if: ${{ steps.release.outputs.release_created }}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bridgetown-plausible-1.1.0 .github/workflows/release.yml
bridgetown-plausible-1.0.2 .github/workflows/release.yml
bridgetown-plausible-1.0.1 .github/workflows/release.yml