Files
release-push/action.yml
T
2026-05-06 08:47:52 +08:00

39 lines
1.2 KiB
YAML

name: 'RELEASE AND PUSH NUGET PACKAGE'
description: '發布並推送 NUGET 套件 '
author: 'Jeffery'
inputs:
PROJECT_NAME:
description: '專案名稱'
required: true
RELEASE_VERSION:
description: '專案版本'
required: true
RUNNER_TOKEN:
description: '存取權杖'
required: true
outputs:
text:
description: '輸出的文字'
value: ${{ steps.display.outputs.text }}
runs:
using: 'composite'
steps:
- name: 壓縮套件
uses: https://gitea.jsc.idv.tw/actions/zip@v0.0.5
with:
RELEASE_VERSION: ${{ inputs.RELEASE_VERSION }}
- name: 發布套件
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
- name: 推送套件
uses: https://gitea.jsc.idv.tw/actions/nuget-push@v0.1.5
with:
RELEASE_VERSION: "${{ inputs.RELEASE_VERSION }}"
RUNNER_TOKEN: "${{ inputs.RUNNER_TOKEN }}"
- name: 清理發布
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@v0.4.0