Sha256: 8ff2c1346a3b8a94bc21c77bb336b60795d7c7dbb17394a7c4bc201fc622049d

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

name: release

on:
  push:
    branches:
      - master

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: GoogleCloudPlatform/release-please-action@v2
        id: release
        with:
          release-type: ruby
          version-file: lib/vagrant-vyos/version.rb

      - uses: actions/checkout@v2
        if: ${{ steps.release.outputs.release_created }}

      - name: Set up Ruby 2.6
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.6
          bundler-cache: true
        if: ${{ steps.release.outputs.release_created }}

      - name: Build
        run: gem build *.gemspec
        if: ${{ steps.release.outputs.release_created }}

      - name: Publish
        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 push *.gem
        if: ${{ steps.release.outputs.release_created }}
        env:
          GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-vyos-1.1.9 .github/workflows/release.yml