14 Commits

Author SHA1 Message Date
Jeffery
fb052a75c4 test: 使用不同的執行器 2026-03-20 18:03:42 +08:00
Jeffery
697311db2d feat: 移除無用的部分 2026-03-20 17:47:26 +08:00
Jeffery
559cb45312 feat: 改回檔案的方式繼續想怎麼處理 2026-03-20 17:38:00 +08:00
Jeffery
8cf6a41f3c test: 相信 AI 再試一次 GITHUB_OUTPUT 2026-03-20 17:31:29 +08:00
Jeffery
b418abbbac feat: 修正工作流 2026-03-20 17:26:04 +08:00
Jeffery
94f0e99392 feat: 顯示另一個工作目錄 2026-03-20 17:22:49 +08:00
Jeffery
e382432c7b feat: 顯示工作目錄的內容 2026-03-20 17:22:20 +08:00
Jeffery
dfaa8530e1 feat: 從不同的工作目錄取得版本檔案 2026-03-20 17:20:48 +08:00
Jeffery
3a95e3e96b test: 從共用資料夾讀取版本檔案 2026-03-20 17:13:34 +08:00
Jeffery
6041e730fa feat: 更新版本號 2026-03-20 17:12:10 +08:00
Jeffery
20d104ab9b test: 將版本檔案放到共用資料夾 2026-03-20 17:11:41 +08:00
Jeffery
f63edd5214 fix: 修正指令 2026-03-20 17:09:35 +08:00
Jeffery
22d14c0e9f feat: 發布新版 2026-03-20 17:07:22 +08:00
Jeffery
f03aa4ba23 feat: 在外部書出版本號 2026-03-20 17:06:00 +08:00
3 changed files with 8 additions and 18 deletions

View File

@@ -5,12 +5,12 @@ on:
jobs:
cd:
name: "CD > 發布專案"
runs-on: docker
runs-on: ubuntu
steps:
- name: 發布專案
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
with:
tag_name: "v0.1.6"
tag_name: "v0.2.2"
- name: 清理舊版本 (保留最新2個)
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
with:
@@ -19,17 +19,17 @@ jobs:
token: ${{ secrets.GITEA_TOKEN }}
test-calculate:
name: "TEST > 計算版本號"
runs-on: docker
runs-on: ubuntu
needs: cd
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: 計算版本號
id: version
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.6
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.2.2
test:
name: "TEST > 測試專案"
runs-on: docker
runs-on: ubuntu
needs: test-calculate
steps:
- name: 顯示版本號

View File

@@ -1,14 +1,9 @@
name: 'CALCULATE VERSION'
description: '計算版本號'
author: 'Jeffery'
# inputs:
# RUNNER_TOKEN:
# description: 'Gitea Runner 用來存取的 Tokenex: ${{ secrets.RUNNER_TOKEN }}'
# required: true
outputs:
version:
description: '計算出的版本號'
value: ${{ steps.calculate.outputs.version }}
description: '計算出的版本號'
runs:
using: 'docker'
image: 'Dockerfile'
@@ -16,8 +11,3 @@ runs:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }}
using: 'composite'
steps:
- name: 將檔案寫到輸出
id: calculate
run: echo "VERSION.txt" >> $GITHUB_OUTPUT

View File

@@ -71,4 +71,4 @@ PATCH=$((PATCH + 1))
NEW_VERSION="$MAJOR.$MINOR.$PATCH" && echo "NEW_VERSION=$NEW_VERSION"
# 將版本輸出到環境變數
echo "version=$NEW_VERSION" >> "VERSION.txt"
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT