This action uploads file at provided path to ContentStack Assets
Required Management Token for the stack authorization.
Required Api Key of the stack.
Required Path of the file to upload
Folder Uid under which file is to be uploaded in ContentStack Assets.
Region based URL for where to upload the file defaults to https://api.contentstack.io/v3/assets.
Link of the uploaded asset.
on: [push]
jobs:
upload-file:
runs-on: ubuntu-latest
name: Upload test report to ContentStack Assets
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16.x"
- name: Upload Test Report
id: upload
uses: Jayesh2812/[email protected]
with:
file_path: test-report/index.html
management_token: ${{ secrets.MANAGEMENT_TOKEN }}
api_key: blt123456789
folder_uid: blt987654321
- name: Link for Report
run: echo "${{ steps.upload.outputs.link }}"