-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.15 KB
/
ruby_app_push_main.yml
File metadata and controls
39 lines (37 loc) · 1.15 KB
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
name: Create Github Release
on:
workflow_call:
secrets:
GH_CI_PAT:
description: 'Token password for GitHub auth'
required: true
jobs:
release:
#
# Create a GitHub Release based on conventional commits.
#
name: 'Release to GitHub'
runs-on: ubuntu-latest
steps:
# Checkout code to release.
- name: Checkout repo
uses: actions/checkout@v3
# Setup Node needed to create release.
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18
# Add plugin to make the changelog for the release.
- name: Add plugin for conventional commits
run: npm install conventional-changelog-conventionalcommits@6
working-directory: ./.github/workflows
# Create the release.
- name: Release to GitHub
working-directory: ./.github/workflows
env:
GITHUB_TOKEN: ${{ secrets.GH_CI_PAT }}
GIT_AUTHOR_NAME: release-bot
GIT_AUTHOR_EMAIL: release@test.com
GIT_COMMITTER_NAME: asyncapi-bot
GIT_COMMITTER_EMAIL: info@asyncapi.io
run: npx semantic-release@22.0.12