mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-31 04:58:07 +00:00
Update build step for CI
This commit is contained in:
parent
fcb06be49f
commit
2495c6a0ac
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -1,24 +1,20 @@
|
||||
name: Publish gem
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- v*
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v22
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/magic-nix-action@v2
|
||||
- uses: DeterminateSystems/nix-installer-actions@v5
|
||||
with:
|
||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Enter Nix devenv
|
||||
run: nix develop
|
||||
- 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
|
||||
RELEASE_COMMAND: nix develop -c rake release
|
||||
|
Loading…
Reference in New Issue
Block a user