Initial commit

This commit is contained in:
2026-07-02 07:23:43 +00:00
commit c3c236cc6a
7 changed files with 382 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
name: CI
on:
pull_request:
types: [opened, synchronize]
jobs:
build:
name: 1. BUILD
runs-on: ubuntu
env:
VERSION: "0.0.0-beta.${{ gitea.run_number }}"
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: ${{ gitea.base_ref == 'develop' }}
test:
name: 2. TEST
runs-on: ubuntu
needs: [build]
outputs:
message: ${{ steps.composite-template.outputs.message }}
steps:
- name: Source Code Checkout
uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}
- name: Run Composite Template
id: composite-template
uses: ./
result:
name: 3. RESULT
runs-on: ubuntu
needs: [build,test]
env:
MESSAGE: ${{ needs.test.outputs.message }}
steps:
- name: Show Message
run: echo "$MESSAGE"
+21
View File
@@ -0,0 +1,21 @@
name: CD
on:
push:
branches:
- master
jobs:
deploy:
name: DEPLOY
runs-on: ubuntu
env:
COMMIT_SHA: ${{ gitea.event.commits[1].id }}
steps:
- name: Source Code Checkout
uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}
with:
fetch-depth: 0
- name: Get Commit Tag
id: commit
run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT
- name: Show Tag
run: echo "${{ steps.commit.outputs.tag }}"
+9
View File
@@ -0,0 +1,9 @@
# GITEA NODE ACTION 的工作流列表
- CI
- BUILD
- TEST
- RESULT
- CD
- BUILD
- DEPLOY