Initial commit

This commit is contained in:
2026-07-17 01:53:45 +00:00
commit 698a005326
3 changed files with 332 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
name: CI
on:
pull_request:
branches:
- master
- develop
types: [opened, synchronize]
env:
REPOSITORY_NAME: ${{ gitea.event.repository.name }}
IS_BETA: ${{ gitea.base_ref == 'develop' }}
jobs:
build:
name: BUILD
runs-on: ubuntu
steps:
- name: 取得存取庫資訊 (含 Tag)
uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}
with:
fetch-depth: 0
- name: 計算下一個版本號
uses: https://gitea.jsc.idv.tw/docker-actions/calculate-next-version@${{ vars.ACTION_CALCULATE_NEXT_VERSION }}
id: calculate-next-version
with:
is_beta: ${{ env.IS_BETA }}
- name: 發布成品
uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }}
env:
VERSION: ${{ steps.calculate-next-version.outputs.value }}
with:
name: "${{ gitea.event.repository.name }} v${{ env.VERSION }}"
tag_name: "v${{ env.VERSION }}"
target_commitish: "${{ gitea.sha }}"
prerelease: ${{ env.IS_BETA }}
- name: 清理舊成品
uses: https://gitea.jsc.idv.tw/docker-actions/clean-old-release@${{ vars.ACTION_CLEAN_OLD_RELEASE }}
if: ${{ env.IS_BETA == 'false' }}