Skip to content

Merge pull request #10 from instructor-ai/4-set-up-package-publishing #1

Merge pull request #10 from instructor-ai/4-set-up-package-publishing

Merge pull request #10 from instructor-ai/4-set-up-package-publishing #1

Workflow file for this run

name: Publish Gem
on:
push:
branches:
- "main"
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Release Gem
if: contains(github.ref, 'refs/tags/v')
uses: cadwallion/publish-rubygems-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
RELEASE_COMMAND: rake release