Skip to content

Merge pull request #38 from query-string/patch-1 #26

Merge pull request #38 from query-string/patch-1

Merge pull request #38 from query-string/patch-1 #26

Workflow file for this run

name: Continuous Deployment
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
publish-shipengine-gem:
runs-on: ubuntu-latest
steps:
- name: Release Please
id: release
uses: google-github-actions/release-please-action@v3
with:
release-type: ruby
package-name: shipengine_sdk
bump-minor-pre-major: true
version-file: lib/shipengine/version.rb
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}
- name: Setup Ruby
uses: ruby/setup-ruby@v1
if: ${{ steps.release.outputs.release_created }}
- name: Install project dependencies
run: bundle install
if: ${{ steps.release.outputs.release_created }}
- name: Publish ShipEngine Gem
if: ${{ steps.release.outputs.release_created }}
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
cat <<EOF >$HOME/.gem/credentials
---
:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
EOF
rake release