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