Skip to content

Commit

Permalink
Create release_with_submodules.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YermekG committed Nov 11, 2024
1 parent 109c117 commit 6c331e8
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: "Tag Release"

on:
pull_request:
types: [closed]

jobs:
create-tag:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Create Tag
uses: negz/create-tag@v1
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: 'Create Release'

on:
workflow_run:
workflows: ["Tag Release"]
types:
- completed
workflow_dispatch:

jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
configurationJson: |
{
"pr_template": "- #{{TITLE}} (##{{NUMBER}})",
"categories": [
{
"title": "## Features",
"labels": ["feature", "feat"]
},
{
"title": "## Fixes",
"labels": ["fix"]
}
]
}
- name: Create Release
uses: mikepenz/[email protected]
with:
body: |
${{steps.github_release.outputs.changelog}}

0 comments on commit 6c331e8

Please sign in to comment.