feat: 設定工作流,壓縮 -> 發布 -> 上傳 -> 清理
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
+21
-21
@@ -1,13 +1,13 @@
|
|||||||
name: 'Composite Action Template'
|
name: 'RELEASE AND PUSH NUGET PACKAGE'
|
||||||
description: 'Composite Action 範本'
|
description: '發布並推送 NUGET 套件 '
|
||||||
author: 'Jeffery'
|
author: 'Jeffery'
|
||||||
inputs:
|
inputs:
|
||||||
runner_token:
|
PROJECT_NAME:
|
||||||
description: 'Gitea Runner Token'
|
description: '專案名稱'
|
||||||
|
required: true
|
||||||
|
RELEASE_VERSION:
|
||||||
|
description: '專案版本'
|
||||||
required: true
|
required: true
|
||||||
text:
|
|
||||||
description: '輸入的文字'
|
|
||||||
default: "Hello, World!"
|
|
||||||
outputs:
|
outputs:
|
||||||
text:
|
text:
|
||||||
description: '輸出的文字'
|
description: '輸出的文字'
|
||||||
@@ -15,17 +15,17 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: 顯示資訊
|
- uses: https://gitea.jsc.idv.tw/actions/zip@v0.0.5
|
||||||
id: display
|
with:
|
||||||
env:
|
RELEASE_VERSION: ${{ inputs.RELEASE_VERSION }}
|
||||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
- uses: akkuman/gitea-release-action@v1
|
||||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
with:
|
||||||
RUNNER_TOKEN: ${{ inputs.runner_token }}
|
name: "${{ inputs.PROJECT_NAME }} v${{ inputs.RELEASE_VERSION }}"
|
||||||
TEXT: ${{ inputs.text }}
|
tag_name: "v${{ inputs.RELEASE_VERSION }}"
|
||||||
run: |
|
target_commitish: master
|
||||||
echo "Gitea Server Url: $GITEA_SERVER_URL"
|
files: |
|
||||||
echo "Gitea Repository: $GITEA_REPOSITORY"
|
${{ inputs.PROJECT_NAME }}.${{ inputs.RELEASE_VERSION }}.zip
|
||||||
echo "Gitea Runner Token: $RUNNER_TOKEN"
|
- uses: https://gitea.jsc.idv.tw/actions/nuget-push@v0.1.4
|
||||||
echo "Input Text: $TEXT"
|
with:
|
||||||
echo "text=$TEXT" >> "$GITHUB_OUTPUT"
|
RELEASE_VERSION: "${{ inputs.RELEASE_VERSION }}"
|
||||||
shell: bash
|
- uses: https://gitea.jsc.idv.tw/actions/cleanup-release@v0.4.0
|
||||||
Reference in New Issue
Block a user