Sha256: a159f3ab6ed150a88be99c3c1d987554c6817834f594da0cbf7f9a86c75c772e

Contents?: true

Size: 1.29 KB

Versions: 8

Compression:

Stored size: 1.29 KB

Contents

name: Build
on:
  pull_request:
  push:
jobs:
  build:
    name: Build
    runs-on: ubuntu-22.04
    permissions:
      contents: write
    steps:
    - name: Checkout
      uses: actions/checkout@v3
      with:
        submodules: recursive
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: '3.1'
        bundler-cache: true
    - name: Build
      run: bundle exec rake
    - name: Release
      if: github.ref_type == 'tag'
      run: bundle exec rake release
      env:
        GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
    - name: Post to a Slack channel
      if: ${{ failure() }}
      uses: slackapi/slack-github-action@v1.23.0
      env:
        SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
        SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
      with:
        payload: |
          {
            "text": "*${{ github.repository }}*\nBuild failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
            "blocks": [
              {
                "type": "section",
                "text": {
                  "type": "mrkdwn",
                  "text": "*${{ github.repository }}*\nBuild failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
                }
              }
            ]
          }

Version data entries

8 entries across 8 versions & 6 rubygems

Version Path
githubchart-3.4.0 .github/workflows/build.yml
githubstats-3.3.0 .github/workflows/build.yml
targit-2.5.2 .github/workflows/build.yml
pkgforge-0.29.1 .github/workflows/build.yml
pkgforge-0.29.0 .github/workflows/build.yml
spaarti-3.0.0 .github/workflows/build.yml
octoauth-2.0.0 .github/workflows/build.yml
targit-2.5.1 .github/workflows/build.yml