Add Gitea Actions CI/CD
All checks were successful
CI / test (push) Successful in 10m24s

This commit is contained in:
2026-06-26 21:23:51 +09:00
parent 1a7c5878f8
commit 0de607fcdf
6 changed files with 287 additions and 1 deletions

View File

@@ -0,0 +1,42 @@
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
description: Version tag to release, for example v0.1.0
required: true
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Setup Go
uses: https://github.com/actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Run tests
run: go test ./...
- name: Build release archives
env:
RELEASE_TAG: ${{ inputs.tag }}
run: scripts/build-release.sh
- name: Publish Gitea release
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
RELEASE_TAG: ${{ inputs.tag }}
run: scripts/publish-gitea-release.sh