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
|
name: Publish gem
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v22
|
- uses: DeterminateSystems/magic-nix-action@v2
|
||||||
|
- uses: DeterminateSystems/nix-installer-actions@v5
|
||||||
with:
|
with:
|
||||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Enter Nix devenv
|
|
||||||
run: nix develop
|
|
||||||
- name: Release Gem
|
- name: Release Gem
|
||||||
if: contains(github.ref, 'refs/tags/v')
|
|
||||||
uses: cadwallion/publish-rubygems-action@master
|
uses: cadwallion/publish-rubygems-action@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
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