ac2ea2a9a5
傳入存取權杖
22 lines
736 B
YAML
22 lines
736 B
YAML
name: 'NUGET PUSH'
|
|
description: '推送 NUGET 套件'
|
|
author: 'Jeffery'
|
|
inputs:
|
|
RELEASE_VERSION:
|
|
description: '要推送的版本號,ex: ${{ needs.calculate.outputs.version }}'
|
|
required: true
|
|
RELEASE_INDEX:
|
|
description: '要推送的版本中第幾個成品,預設為 0'
|
|
default: 0
|
|
RUNNER_TOKEN:
|
|
description: '存取權杖'
|
|
runs:
|
|
using: 'docker'
|
|
image: 'Dockerfile'
|
|
env:
|
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
|
RELEASE_VERSION: ${{ inputs.RELEASE_VERSION }}
|
|
RELEASE_INDEX: ${{ inputs.RELEASE_INDEX }}
|
|
RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN || secrets.RUNNER_TOKEN || secrets.GITEA_TOKEN }}
|
|
NUGET_AUTHOR: ${{ gitea.repository_owner }} |