Some checks are pending
- Extracts full frontmatter metadata (originalDate, notion_*, authors, source) - Correct date priority: frontmatter → filename → mtime → ctime - All metadata exposed in index.json for frontend use Phase 1 quick win complete.
69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
name: Semantic Versioning
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
inputs:
|
|
version_type:
|
|
description: 'Version bump type'
|
|
required: true
|
|
default: 'patch'
|
|
type: choice
|
|
options:
|
|
- major
|
|
- minor
|
|
- patch
|
|
|
|
jobs:
|
|
version:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
new_version: ${{ steps.version.outputs.new_version }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Get current version
|
|
id: current-version
|
|
run: |
|
|
git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0" > VERSION
|
|
echo "Current: $(cat VERSION)"
|
|
|
|
- name: Bump version
|
|
id: version
|
|
run: |
|
|
TYPE=${${{ github.event.inputs.version_type || 'patch' }} || TYPE="patch"
|
|
echo "Bumping $TYPE version..."
|
|
# Simple version bump (can be enhanced with git-semver)
|
|
echo "v1.0.0" > VERSION
|
|
echo "new_version=$(cat VERSION)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create tag
|
|
run: |
|
|
git config user.email "solaria@thefoldwithin.earth"
|
|
git config user.name "Solaria Lumis Havens"
|
|
git tag -a "$(cat VERSION)" -m "Version $(cat VERSION)"
|
|
git push origin "$(cat VERSION)" || echo "Tag may already exist"
|
|
|
|
- name: Create Release
|
|
uses: actions/create-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: v$(cat VERSION)
|
|
release_name: Release v$(cat VERSION)
|
|
body: |
|
|
## Coherence Update
|
|
|
|
This release captures the ongoing evolution of The Fold Within.
|
|
|
|
## Changes
|
|
|
|
- Fieldnotes updated
|
|
- Coherence maintained
|
|
draft: false
|
|
prerelease: false
|