21 lines
649 B
YAML
21 lines
649 B
YAML
name: Upload SDK asset
|
|
description: Upload the SDK for a specific language as an asset for the workflow.
|
|
|
|
inputs:
|
|
language:
|
|
required: true
|
|
description: One of nodejs, python, dotnet, go, java
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Compress SDK folder
|
|
shell: bash
|
|
run: tar -zcf sdk/${{ inputs.language }}.tar.gz -C sdk/${{ inputs.language }} .
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
with:
|
|
name: ${{ inputs.language }}-sdk.tar.gz
|
|
path: ${{ github.workspace}}/sdk/${{ inputs.language }}.tar.gz
|
|
retention-days: 30
|