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 5a04d3b
Show file tree
Hide file tree
Showing 2 changed files with 50 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
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: 'Create Release'

on:
workflow_dispatch:
inputs:
tag_name:
description: 'Tag name'
required: true

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
lfs: true
submodules: true

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.LATEST_TAG }}
release_name: ${{ env.LATEST_TAG }}
body: |
${{steps.github_release.outputs.changelog}}
draft: false
prerelease: false

0 comments on commit 5a04d3b

Please sign in to comment.