Sha256: 0eb5e8c485dbef3956fe56c8dc629d1721181a1b80834759310479b89271832d

Contents?: true

Size: 1.67 KB

Versions: 21

Compression:

Stored size: 1.67 KB

Contents

name: Publish

on:
  release:
    types: [created]

jobs:
  deploy:
    name: Publish
    runs-on: ubuntu-latest
    steps:
      - name: Notify slack success
        if: success()
        id: slack # IMPORTANT: reference this step ID value in future Slack steps
        env:
          SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
        uses: voxmedia/github-action-slack-notify-build@v1.1.1
        with:
          channel: github-actions
          status: STARTING
          color: warning

      - uses: actions/checkout@v2
      - name: Set up Ruby 2.6
        uses: actions/setup-ruby@v1
        with:
          version: 2.6.x

      - name: Publish to RubyGems
        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_AUTH_TOKEN}}

      - name: Notify slack success
        if: success()
        env:
          SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
        uses: voxmedia/github-action-slack-notify-build@v1.1.1
        with:
          message_id: ${{ steps.slack.outputs.message_id }}
          channel: github-actions
          status: SUCCESS
          color: good

      - name: Notify slack fail
        if: failure()
        env:
          SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
        uses: voxmedia/github-action-slack-notify-build@v1.1.1
        with:
          message_id: ${{ steps.slack.outputs.message_id }}
          channel: github-actions
          status: FAILED
          color: danger

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
securenative-0.1.40 .github/workflows/publish.yml
securenative-0.1.39 .github/workflows/publish.yml
securenative-0.1.38 .github/workflows/publish.yml
securenative-0.1.37 .github/workflows/publish.yml
securenative-0.1.36 .github/workflows/publish.yml
securenative-0.1.35 .github/workflows/publish.yml
securenative-0.1.34 .github/workflows/publish.yml
securenative-0.1.33 .github/workflows/publish.yml
securenative-0.1.32 .github/workflows/publish.yml
securenative-0.1.31 .github/workflows/publish.yml
securenative-0.1.30 .github/workflows/publish.yml
securenative-0.1.28 .github/workflows/publish.yml
securenative-0.1.27 .github/workflows/publish.yml
securenative-0.1.26 .github/workflows/publish.yml
securenative-0.1.24 .github/workflows/publish.yml
securenative-0.1.23 .github/workflows/publish.yml
securenative-0.1.22 .github/workflows/publish.yml
securenative-0.1.21 .github/workflows/publish.yml
securenative-0.1.20 .github/workflows/publish.yml
securenative-0.1.18 .github/workflows/publish.yml