mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
- TactlitySDK updates fro TactilityFreeRtos - Enable auto-uploading of SDKs to the CDN when merging code
24 lines
773 B
YAML
24 lines
773 B
YAML
name: Publish Firmware
|
|
|
|
inputs:
|
|
cdn_version:
|
|
description: The version that determines the path on the CDN
|
|
required: true
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: 'Download all-artifacts'
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: 'all-artifacts'
|
|
path: artifacts
|
|
- name: 'Install boto3'
|
|
shell: bash
|
|
run: pip install boto3
|
|
- name: 'Generate files'
|
|
shell: bash
|
|
run: version=`cat version.txt` && python Buildscripts/CDN/generate-firmware-files.py artifacts artifacts-cdn $version
|
|
- name: 'Upload files'
|
|
shell: bash
|
|
run: python Buildscripts/CDN/upload-firmware-files.py artifacts-cdn ${{ inputs.cdn_version }} ${{ env.CDN_ID }} ${{ env.CDN_TOKEN_NAME }} ${{ env.CDN_TOKEN_VALUE }} |