ci: add .gitea/workflows/release.yml (tag -> per-addon zip release)
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
name: release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*-coa.*' # Asc-1.1.6-coa.2, 9.1.40-coa.3, etc.
|
||||||
|
- 'v*' # v0.3.0 for repos without an upstream version
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: linux-amd64
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # build_zip uses git archive HEAD; full history is fine
|
||||||
|
|
||||||
|
- name: Build per-addon zip(s)
|
||||||
|
run: bash tools/build_zip.sh
|
||||||
|
|
||||||
|
- name: Publish release
|
||||||
|
uses: actions/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
files: dist/*.zip
|
||||||
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
Reference in New Issue
Block a user