From 4c93b8191ddfbcc76b342875ebf461e610fac835 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Tue, 5 May 2026 18:26:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A8=AD=E5=AE=9A=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=EF=BC=8C=E5=A3=93=E7=B8=AE=20->=20=E7=99=BC=E5=B8=83?= =?UTF-8?q?=20->=20=E4=B8=8A=E5=82=B3=20->=20=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- action.yml | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/action.yml b/action.yml index 028357c..96fb0f9 100644 --- a/action.yml +++ b/action.yml @@ -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 \ No newline at end of file + - 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 \ No newline at end of file