feat: migrate to CoorenLabs-style dual-workflow (release-triggered docker build)

This commit is contained in:
RY4N
2026-03-27 01:26:57 +06:00
parent 48d42ec609
commit 5609864d38
2 changed files with 57 additions and 48 deletions

48
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,48 @@
name: Automated Build and Release
on:
push:
branches:
- master
- main
paths-ignore:
- '**.md'
- '.gitignore'
jobs:
release:
name: Tag and Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: GitHub Tag Action
id: tag_action
uses: anothrNick/github-tag-action@1.71.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
- name: Create GitHub Release
if: steps.tag_action.outputs.new_tag != ''
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tag_action.outputs.new_tag }}
name: Release ${{ steps.tag_action.outputs.new_tag }}
body: |
Automated release for version ${{ steps.tag_action.outputs.new_tag }}
Changes in this version:
${{ github.event.head_commit.message }}
generate_release_notes: true
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}