mirror of
https://github.com/sigmasternchen/drnk.me
synced 2025-03-15 09:48:54 +00:00
chore: Add version bump workflow
This commit is contained in:
parent
781b400c1e
commit
8051894731
4 changed files with 34 additions and 3 deletions
8
.cz.toml
Normal file
8
.cz.toml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[tool.commitizen]
|
||||||
|
name = "cz_conventional_commits"
|
||||||
|
tag_format = "v$version"
|
||||||
|
version_scheme = "semver"
|
||||||
|
version = "0.1.0"
|
||||||
|
version_files = [ "version.php:VERSION" ]
|
||||||
|
update_changelog_on_bump = true
|
||||||
|
major_version_zero = true
|
22
.github/workflows/bumb-version.yml
vendored
Normal file
22
.github/workflows/bumb-version.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: 'Bump version'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
bump-version:
|
||||||
|
if: "!startsWith(github.event.head_commit.message, 'bump:')"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: "Bump version and create changelog with commitizen"
|
||||||
|
steps:
|
||||||
|
- name: Check out
|
||||||
|
uses: "actions/checkout@v3"
|
||||||
|
with:
|
||||||
|
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Create bump and changelog
|
||||||
|
uses: "commitizen-tools/commitizen-action@master"
|
||||||
|
with:
|
||||||
|
github_token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
|
4
.github/workflows/upload.yml
vendored
4
.github/workflows/upload.yml
vendored
|
@ -2,14 +2,12 @@ name: 'Publish to prod'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags: v[0-9]+.[0-9]+.[0-9]+
|
||||||
- "main"
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload-prod:
|
upload-prod:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
3
version.php
Normal file
3
version.php
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
const VERSION = "0.1.0";
|
Loading…
Reference in a new issue