mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-30 22:57:56 +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
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v22
|
||||
with:
|
||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- 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
|
||||
run: |
|
||||
mkdir -p ~/.gem
|
||||
cat << EOF > ~/.gem/credentials
|
||||
---
|
||||
:github: Bearer ${{ secrets.GITHUB_TOKEN }}
|
||||
: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