mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-31 04:58:07 +00:00
26 lines
620 B
YAML
26 lines
620 B
YAML
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
|
|
with:
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Release gem
|
|
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
|