.github/workflows/release.yml in bolognese-1.9.18 vs .github/workflows/release.yml in bolognese-1.10.0
- old
+ new
@@ -2,33 +2,28 @@
on:
release:
types: [published]
jobs:
+ ci:
+ uses: ./.github/workflows/ci.yml
build:
+ needs: ci
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Set up Ruby 2.6
- uses: actions/setup-ruby@v1
+ uses: ruby/setup-ruby@v1
with:
- ruby-version: 2.6.x
+ ruby-version: "2.6"
- - name: Build and test
+ - name: Build
run: |
- gem install bundler
bundle install
- bundle exec rspec spec
- - name: Code Climate Test Reporter
- uses: aktions/codeclimate-test-reporter@v1
- with:
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
- command: after-build
-
- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
@@ -42,6 +37,6 @@
uses: adamkdean/simple-slack-notify@1.0.4
with:
channel: '#ops'
username: 'GitHub Actions'
color: 'good'
- text: 'A new version of the bolognese gem has been released.'
\ No newline at end of file
+ text: 'A new version of the bolognese gem has been released.'