Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| da5edd48cb | |||
| ffe205ed12 |
+12
-4
@@ -8,6 +8,9 @@ inputs:
|
|||||||
RELEASE_VERSION:
|
RELEASE_VERSION:
|
||||||
description: '專案版本'
|
description: '專案版本'
|
||||||
required: true
|
required: true
|
||||||
|
RUNNER_TOKEN:
|
||||||
|
description: '存取權杖'
|
||||||
|
required: true
|
||||||
outputs:
|
outputs:
|
||||||
text:
|
text:
|
||||||
description: '輸出的文字'
|
description: '輸出的文字'
|
||||||
@@ -15,17 +18,22 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.jsc.idv.tw/actions/zip@v0.0.5
|
- name: 壓縮套件
|
||||||
|
uses: https://gitea.jsc.idv.tw/actions/zip@v0.0.5
|
||||||
with:
|
with:
|
||||||
RELEASE_VERSION: ${{ inputs.RELEASE_VERSION }}
|
RELEASE_VERSION: ${{ inputs.RELEASE_VERSION }}
|
||||||
- uses: akkuman/gitea-release-action@v1
|
- name: 發布套件
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
name: "${{ inputs.PROJECT_NAME }} v${{ inputs.RELEASE_VERSION }}"
|
name: "${{ inputs.PROJECT_NAME }} v${{ inputs.RELEASE_VERSION }}"
|
||||||
tag_name: "v${{ inputs.RELEASE_VERSION }}"
|
tag_name: "v${{ inputs.RELEASE_VERSION }}"
|
||||||
target_commitish: master
|
target_commitish: master
|
||||||
files: |
|
files: |
|
||||||
${{ inputs.PROJECT_NAME }}.${{ inputs.RELEASE_VERSION }}.zip
|
${{ inputs.PROJECT_NAME }}.${{ inputs.RELEASE_VERSION }}.zip
|
||||||
- uses: https://gitea.jsc.idv.tw/actions/nuget-push@v0.1.4
|
- name: 推送套件
|
||||||
|
uses: https://gitea.jsc.idv.tw/actions/nuget-push@v0.1.5
|
||||||
with:
|
with:
|
||||||
RELEASE_VERSION: "${{ inputs.RELEASE_VERSION }}"
|
RELEASE_VERSION: "${{ inputs.RELEASE_VERSION }}"
|
||||||
- uses: https://gitea.jsc.idv.tw/actions/cleanup-release@v0.4.0
|
RUNNER_TOKEN: "${{ inputs.RUNNER_TOKEN }}"
|
||||||
|
- name: 清理發布
|
||||||
|
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@v0.4.0
|
||||||
Reference in New Issue
Block a user