asciidoctor-foodogsquared-e.../.github/workflows/release.yml

22 lines
627 B
YAML

name: Publish gem
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: DeterminateSystems/nix-installer-action@v6
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix develop -c rake spec
- name: Release Gem
uses: cadwallion/publish-rubygems-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
RELEASE_COMMAND: nix develop -c rake release