Sha256: 1c322ac71951a52e5cf6e7e14f3f9099cf828cdf153519179a63c1ef357d4800

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

name: release

on:
  push:
    branches:
      - master

jobs:
  release:
    runs-on: ubuntu-latest

    steps:
      - uses: GoogleCloudPlatform/release-please-action@v2
        id: release
        with:
          token: ${{ secrets.GH_TOKEN }}
          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
        if: ${{ steps.release.outputs.release_created }}

      - name: Build
        run: |
          bundle config path vendor/bundle
          bundle install --jobs 4 --retry 3
          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.10 .github/workflows/release.yml