Drop Python 3.9 suppoort (#560) #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Bump version and push tag | |
uses: anothrNick/github-tag-action@1.67.0 | |
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: "changelog.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" |