Initial commit

This commit is contained in:
2026-07-16 05:57:26 +00:00
commit fd96e217fc
6 changed files with 461 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
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 }}