first commit
All checks were successful
/ CD > 發布專案 (push) Successful in 3s

This commit is contained in:
Jeffery
2025-09-18 14:28:37 +08:00
commit 177416c85d
3 changed files with 273 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
on:
push:
branches:
- master
jobs:
cd:
name: "CD > 發布專案"
runs-on: docker
env:
RUNNER_TOOL_CACHE: /toolcache
steps:
- name: 計算版本號
id: version
uses: https://gitea.jsc.idv.tw/jiantw83/calculate-version-action@v${{ vars.CALCULATE_VERSION }}
with:
gitea-server: ${{ gitea.server_url }}
repository: ${{ gitea.repository }}
token: ${{ secrets.GITEA_TOKEN }}
- name: 發布專案
uses: akkuman/gitea-release-action@v1
with:
tag_name: "v${{ steps.version.outputs.VERSION }}"
- name: 清理舊版本 (保留最新2個)
uses: https://gitea.jsc.idv.tw/jiantw83/cleanup-release-action@v${{ vars.CLEANUP_RELEASE_VERSION }}
with:
gitea-server: ${{ gitea.server_url }}
repository: ${{ gitea.repository }}
token: ${{ secrets.GITEA_TOKEN }}