Files
calculate-version/.gitea/workflows/master.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 31: cannot unmarshal !!map into string line 35: cannot unmarshal !!map into string
2026-03-20 17:22:49 +08:00

47 lines
1.3 KiB
YAML

on:
push:
branches:
- master
jobs:
cd:
name: "CD > 發布專案"
runs-on: docker
steps:
- name: 發布專案
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
with:
tag_name: "v0.1.9"
- name: 清理舊版本 (保留最新2個)
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
with:
gitea-server: ${{ gitea.server_url }}
repository: ${{ gitea.repository }}
token: ${{ secrets.GITEA_TOKEN }}
test-calculate:
name: "TEST > 計算版本號"
runs-on: docker
needs: cd
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: 計算版本號
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.9
- name: 顯示工作目錄
run:
echo "工作目錄: $(pwd)" && ls -la
workspace: ${{ github.workspace }}
- name: 顯示工作目錄
run:
echo "工作目錄: $(pwd)" && ls -la
workspace: /workspace
- name: 輸出版本號
id: version
run: cat VERSION.txt >> $GITHUB_OUTPUT
workspace: ${{ github.workspace }}
test:
name: "TEST > 測試專案"
runs-on: docker
needs: test-calculate
steps:
- name: 顯示版本號
run: echo ${{ needs.test-calculate.outputs.version }}