mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-31 10:58:11 +00:00
Fix CI to use Nix devenv
This commit is contained in:
parent
299cad9a8a
commit
53e225f76c
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -10,10 +10,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: cachix/install-nix-action@v22
|
||||||
|
with:
|
||||||
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Release gem
|
- name: Release gem
|
||||||
if: contains(github.ref, 'refs/tags/v')
|
run: |
|
||||||
uses: cadwallion/publish-rubygems-action@master
|
mkdir -p ~/.gem
|
||||||
env:
|
cat << EOF > ~/.gem/credentials
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
---
|
||||||
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
:github: Bearer ${{ secrets.GITHUB_TOKEN }}
|
||||||
RELEASE_COMMAND: rake release
|
:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
|
||||||
|
EOF
|
||||||
|
chmod 0600 ~/.gem/credentials
|
||||||
|
nix develop -c rake release
|
||||||
|
Loading…
Reference in New Issue
Block a user