Sha256: c723ed0d0cf520829089b05a05ddd03d44190e9ff53487b118b29bbb3790afdd

Contents?: true

Size: 925 Bytes

Versions: 1

Compression:

Stored size: 925 Bytes

Contents

name: Release built gem on tag-push

on:
  push:
    tags:
      - 'v*'

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
      - run: bundle exec rake build
      - id: gem
        run: echo "::set-output name=result::$(find pkg -name 'deploygate-*.gem' -type f | head -1)"
      - run: |
          curl --data-binary '@${{ steps.gem.outputs.result }}' \
            -H 'Authorization: ${{ secrets.RUBYGEMS_API_KEY }}' \
            "https://rubygems.org/api/v1/gems"
      - uses: slackapi/slack-github-action@v1.16.0
        with:
          payload: "{\"text\": \"Released a deploygate gem in <https://rubygems.org/gems/deploygate/|RubyGems>\"}"
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SHARED_FOR_RELEASE_ARTIFACT_SLACK_INCOMING_WEBHOOK_URL }}
          SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
deploygate-0.8.5 .github/workflows/release.yml