Sha256: 6ca52ce4061ec07a6e1c3356338bcb864ad4b0af4031a2725632329509804280

Contents?: true

Size: 1.83 KB

Versions: 9

Compression:

Stored size: 1.83 KB

Contents

# Very important!
# Make sure that the github token has read AND WRITE access on github.
#   1. hit https://github.com/seatsio/[REPO]/settings/actions
#   2. under "Workflow permissions", make sure "Read and write permissions" is checked instead of the (default?) read only.
#

name: Release
run-name: Release ${{ github.repository }}
on:
  workflow_dispatch:
    inputs:
      versionToBump:
        description: 'The version to bump. Major for incompatible API changes, minor for adding BC features'
        required: true
        type: choice
        options:
          - minor
          - major
jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: fregante/setup-git-user@v2
      - uses: actions/setup-node@v4
        with:
          node-version: 20
          registry-url: https://registry.npmjs.org/
      - name: Install dependencies
        run: yarn add -D -E zx@8.1.4 semver@7.6.3
      - name: Run release script  
        run: yarn zx ./release.mjs -v $VERSION_TO_BUMP
        env:
          VERSION_TO_BUMP: ${{ inputs.versionToBump }}
          GH_TOKEN: ${{ github.token }}
      - 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 build *.gemspec
          gem push *.gem
        env:
          GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"

  notify-slack-failure:
    runs-on: ubuntu-latest
    needs: [ release ]
    if: failure()
    steps:
      - uses: voxmedia/github-action-slack-notify-build@v1
        with:
          status: FAILED
          channel: build_status
          color: danger
        env:
          SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
seatsio-51.1.0 .github/workflows/release.yml
seatsio-51.0.0 .github/workflows/release.yml
seatsio-50.0.0 .github/workflows/release.yml
seatsio-49.1.0 .github/workflows/release.yml
seatsio-49.0.0 .github/workflows/release.yml
seatsio-48.11.0 .github/workflows/release.yml
seatsio-48.10.0 .github/workflows/release.yml
seatsio-48.9.0 .github/workflows/release.yml
seatsio-48.8.0 .github/workflows/release.yml