Initial commit

This commit is contained in:
2026-07-10 08:45:31 +00:00
commit 76a8f44003
8 changed files with 502 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
name: CI
on:
pull_request:
branches:
- master
- develop
types: [opened, synchronize]
jobs:
build:
name: 1. BUILD
runs-on: ubuntu
env:
VERSION: "0.0.0-beta.${{ gitea.run_number }}"
IS_BETA: ${{ gitea.base_ref == 'develop' }}
outputs:
version: ${{ env.VERSION }}
is_beta: ${{ env.IS_BETA }}
steps:
- name: Publishing Release
uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }}
with:
name: "${{ gitea.event.repository.name }} v${{ env.VERSION }}"
tag_name: "v${{ env.VERSION }}"
target_commitish: ${{ gitea.sha }}
prerelease: ${{ env.IS_BETA }}
test:
name: 2. TEST
runs-on: ubuntu
needs: [build]
if: ${{ needs.build.outputs.is_beta == 'true' }}
env:
VERSION: ${{ needs.build.outputs.version }}
outputs:
message: ${{ steps.docker-template.outputs.message }}
steps:
- name: Run Docker Template
id: docker-template
uses: https://gitea.jsc.idv.tw/actions/docker-template@v${{ env.VERSION }}
result:
name: 3. RESULT
runs-on: ubuntu
needs: [build,test]
env:
MESSAGE: ${{ needs.test.outputs.message }}
steps:
- name: Show Message
run: echo "$MESSAGE"