Sha256: 5e35b1e8e29affd0d0aa3656472e719e7e563bf2fe0411fbd73fc35267eb5aea

Contents?: true

Size: 909 Bytes

Versions: 3

Compression:

Stored size: 909 Bytes

Contents

name: Release

on:
  push:
    tags:
      - '*'

jobs:
  release:
    runs-on: ubuntu-latest
    if: github.repository_owner == 'puppetlabs'
    steps:
      - uses: actions/checkout@v4
      - name: Install Ruby 3.0
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.0'
        env:
          BUNDLE_WITHOUT: release
      - name: Build gem
        run: gem build --strict --verbose *.gemspec
      - name: Publish gem to rubygems.org
        run: gem push *.gem
        env:
          GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
      - name: Setup GitHub packages access
        run: |
          mkdir -p ~/.gem
          echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
          chmod 0600 ~/.gem/credentials
      - name: Publish gem to GitHub packages
        run: gem push --key github --host https://rubygems.pkg.github.com/puppetlabs *.gem

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beaker-puppet-4.1.1 .github/workflows/release.yml
beaker-puppet-4.1.0 .github/workflows/release.yml
beaker-puppet-4.0.0 .github/workflows/release.yml