2023-07-07 10:36:10 +00:00
|
|
|
name: Publish gem
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-28 10:19:01 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: DeterminateSystems/magic-nix-action@v2
|
2023-11-01 13:28:18 +00:00
|
|
|
- uses: DeterminateSystems/nix-installer-action@v6
|
2023-07-07 17:06:21 +00:00
|
|
|
with:
|
|
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
2023-11-07 07:33:24 +00:00
|
|
|
- run: nix develop -c rake spec
|
2023-07-09 10:04:56 +00:00
|
|
|
- name: Release Gem
|
|
|
|
uses: cadwallion/publish-rubygems-action@master
|
|
|
|
env:
|
2023-11-01 13:28:18 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
2023-10-28 10:19:01 +00:00
|
|
|
RELEASE_COMMAND: nix develop -c rake release
|