Files
hianime-api/.github/workflows/release.yml

49 lines
1.2 KiB
YAML

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 }}