- Added automatic versioning based on git tags using semantic-release in Gitea Actions. - Introduced new API endpoints `GET /version` and `GET /v1/version` to expose build metadata. - Updated Docker build process to include version and build time information in Go binaries. - Enhanced documentation with details on release processes and versioning guidelines. - Integrated version display in the web application for better user visibility.
34 lines
899 B
YAML
34 lines
899 B
YAML
name: Release
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [CI]
|
|
types: [completed]
|
|
branches: [main, master]
|
|
|
|
jobs:
|
|
release:
|
|
if: >-
|
|
github.event.workflow_run.conclusion == 'success' &&
|
|
github.event.workflow_run.event == 'push'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.workflow_run.head_sha }}
|
|
fetch-depth: 0
|
|
token: ${{ secrets.ACTIONS_PAT || gitea.token }}
|
|
persist-credentials: true
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: npm
|
|
cache-dependency-path: package-lock.json
|
|
- name: Install release tooling
|
|
run: npm ci
|
|
- name: Semantic release
|
|
run: npx semantic-release
|
|
env:
|
|
GITEA_URL: https://git.shts.su
|
|
GITEA_TOKEN: ${{ secrets.ACTIONS_PAT || gitea.token }}
|