-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.24 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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@v3
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: "Debug"
run: |
echo ${{ steps.gitinfo.outputs.name }}
echo ${{ steps.gitinfo.outputs.branch }}
echo ${{ steps.gitinfo.outputs.version }}
# - name: "Publish gem"
# env:
# VERSION: ${{ steps.gitinfo.outputs.tag }}
# shell: "bash"
# run: "make publish"
# - name: "Create Release"
# id: release
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# name: Release ${{ steps.gitinfo.outputs.tag }}
# body: ${{steps.github_release.outputs.changelog}}
# draft: false
# prerelease: false
# files: |
# lr_common_styles-${{ steps.gitinfo.outputs.version }}.gem