initial commit
This commit is contained in:
20
.github/actions/upload-sdk/action.yml
vendored
Normal file
20
.github/actions/upload-sdk/action.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
with:
|
||||
name: ${{ inputs.language }}-sdk.tar.gz
|
||||
path: ${{ github.workspace}}/sdk/${{ inputs.language }}.tar.gz
|
||||
retention-days: 30
|
||||
Reference in New Issue
Block a user