Skip to content

Use custom no767/get-releasenote action instead of changelog.md f… #50

Use custom no767/get-releasenote action instead of changelog.md f…

Use custom no767/get-releasenote action instead of changelog.md f… #50

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
Bundle:
runs-on: ubuntu-24.04
if: contains(github.event.head_commit.message, '#major') || contains(github.event.head_commit.message, '#minor') || contains(github.event.head_commit.message, '#patch')
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Prepare for bundling
run: |
mkdir -p kumiko-docker
mkdir -p releases
cp docker/docker-compose.yml kumiko-docker/
cp docker/example.env kumiko-docker/
cp -r docker/pg/ kumiko-docker/
- name: Bundle docker-related files
run: |
zip releases/kumiko-docker.zip kumiko-docker/**
tar -czf releases/kumiko-docker.tar.gz kumiko-docker/**
- name: Upload bundle
uses: actions/upload-artifact@v4
with:
path: releases
Release:
runs-on: ubuntu-24.04
needs: Bundle
if: contains(github.event.head_commit.message, '#major') || contains(github.event.head_commit.message, '#minor') || contains(github.event.head_commit.message, '#patch')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: releases
- name: Generate release notes
uses: no767/[email protected]
with:
name: Kumiko
changes_file: changelog.md
output_file: output.md
version_file: bot/cogs/__init__.py
- name: Bump version and push tag
uses: anothrNick/[email protected]
id: tag_version
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
WITH_V: true
RELEASE_BRANCHES: main
- name: Release New Version
uses: ncipollo/release-action@v1
with:
bodyFile: "output.md"
token: ${{ secrets.PAT_TOKEN }}
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.tag_version.outputs.new_tag }}
artifacts: "releases/kumiko-docker.zip,releases/kumiko-docker.tar.gz"