Skip to content

Release and Publish Gem #24

Release and Publish Gem

Release and Publish Gem #24

Workflow file for this run

name: Release and Publish Gem
on:
workflow_dispatch: {}
jobs:
build:
name: "Build gem package"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Git Information"
id: gitinfo
run: |
echo name=${GITHUB_REF#refs/*/} | tee -a $GITHUB_OUTPUT
echo branch=${GITHUB_REF#refs/heads/} | tee -a $GITHUB_OUTPUT
make tags | tee -a $GITHUB_OUTPUT
- name: "Build gem"
run: "make gem"
- name: "Create Release"
id: release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.gitinfo.outputs.version }}
name: v${{ steps.gitinfo.outputs.version }}
generate_release_notes: true
draft: false
prerelease: false
files: |
lr_common_styles-${{ steps.gitinfo.outputs.version }}.gem
- name: "Publish gem"
run: |
PAT=${{ secrets.GITHUB_TOKEN }} make publish