mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-02-12 06:19:02 +00:00
Create GitHub action for releasing gem
This commit is contained in:
parent
5c789adb79
commit
1b630107c6
19
.github/workflows/build.yml
vendored
Normal file
19
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Publish gem
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- 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
|
Loading…
Reference in New Issue
Block a user