Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .chglog/CHANGELOG.tpl.md

This file was deleted.

28 changes: 0 additions & 28 deletions .chglog/config.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/calver-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CalVer Release
on:
workflow_dispatch:
# push:
# branches:
# - main

permissions:
checks: write
contents: write
id-token: write
statuses: write

jobs:
calver-tag:
name: CalVer Release Tagging
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Generate Calendar Version for Tagging
id: calver
run: |
# YYYY.MMDD.HHMM format in UTC
DATE=$(date -u +"%Y.%m%d.%H%M")
echo "Generated CalVer Tag: $DATE"
echo "version=$DATE" >> "$GITHUB_OUTPUT"

- name: Tag and Release
run: |
set -eou pipefail
gh release create "${{ steps.calver.outputs.version }}" \
--target main \
--title "Release ${{ steps.calver.outputs.version }}" \
--generate-notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 changes: 0 additions & 37 deletions .github/workflows/main-release.yaml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/semver-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: SemVer Release
on:
workflow_dispatch:
push:
branches:
- main

permissions:
checks: write
contents: write
id-token: write
statuses: write

jobs:
semver-tag:
name: SemVer Release Tagging
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Generate Semantic Version for Tagging
id: semver
run: |
curl -sL https://git.io/autotag-install | sudo sh -s -- -b /usr/local/bin
SEMVER=$(autotag -vn --scheme=conventional)
echo "Generated SemVer Tag: $SEMVER"
echo "version=$SEMVER" >> "$GITHUB_OUTPUT"

- name: Tag and Release
run: |
set -eou pipefail
gh release create "${{ steps.semver.outputs.version }}" \
--target main \
--title "Release ${{ steps.semver.outputs.version }}" \
--generate-notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading