Uploading of obfuscated bundles is moved from rusefi repo
This commit is contained in:
parent
01f7aabcbd
commit
5144679256
|
@ -69,12 +69,6 @@ inputs:
|
|||
required: false
|
||||
RUSEFI_SSH_PASS:
|
||||
required: false
|
||||
RUSEFI_OBFUSCATED_PUBLIC_SSH_SERVER:
|
||||
required: false
|
||||
RUSEFI_OBFUSCATED_PUBLIC_SSH_USER:
|
||||
required: false
|
||||
RUSEFI_OBFUSCATED_PUBLIC_SSH_PASS:
|
||||
required: false
|
||||
ADDITIONAL_ENV:
|
||||
required: false
|
||||
EXTRA_LIVE_DATA_FILE:
|
||||
|
@ -83,10 +77,6 @@ inputs:
|
|||
description: '.properties file to store GHA outputs (unfortunately GGA outputs do not work for nested GHA - see https://github.com/actions/runner/issues/2009#issuecomment-1793565031)'
|
||||
required: false
|
||||
default: ''
|
||||
skip_uploading_obfuscated_bundle:
|
||||
description: 'should be true if this GHA should not upload obfuscated bundle'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
|
@ -112,9 +102,6 @@ runs:
|
|||
[ -z "${{inputs.RUSEFI_SSH_SERVER}}" ] || echo "::add-mask::${{inputs.RUSEFI_SSH_SERVER}}"
|
||||
[ -z "${{inputs.RUSEFI_SSH_USER}}" ] || echo "::add-mask::${{inputs.RUSEFI_SSH_USER}}"
|
||||
[ -z "${{inputs.RUSEFI_SSH_PASS}}" ] || echo "::add-mask::${{inputs.RUSEFI_SSH_PASS}}"
|
||||
[ -z "${{inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_SERVER}}" ] || echo "::add-mask::${{inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_SERVER}}"
|
||||
[ -z "${{inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_USER}}" ] || echo "::add-mask::${{inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_USER}}"
|
||||
[ -z "${{inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_PASS}}" ] || echo "::add-mask::${{inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_PASS}}"
|
||||
[ -z "${{inputs.ADDITIONAL_ENV}}" ] || echo "::add-mask::${{inputs.ADDITIONAL_ENV}}"
|
||||
|
||||
- name: Set Token
|
||||
|
@ -483,36 +470,6 @@ runs:
|
|||
name: ${{steps.find-out-white-label.outputs.white_label}}_bundle_${{env.SHORT_BOARD_NAME}}_autoupdate_2024-05-25.zip.zip
|
||||
path: ${{inputs.rusefi_dir}}/artifacts/${{steps.find-out-white-label.outputs.white_label}}_bundle_${{env.SHORT_BOARD_NAME}}_autoupdate.zip
|
||||
|
||||
- name: Upload obfuscated Bundle
|
||||
if: ${{ contains(inputs.artifacts, 'obfuscated') && inputs.skip_uploading_obfuscated_bundle == 'false' }}
|
||||
working-directory: ${{inputs.rusefi_dir}}/artifacts
|
||||
shell: bash
|
||||
run: |
|
||||
: Upload obfuscated Bundle
|
||||
if [ "${{github.ref}}" = "refs/heads/master" ]; then
|
||||
echo "obfuscated: On master branch"
|
||||
elif [[ ${{github.ref_name}} == "lts"* ]]; then
|
||||
echo "obfuscated: On LTS branch [$AUTOMATION_LTS][$AUTOMATION_REF]"
|
||||
else
|
||||
echo "obfuscated: Not uploading [${{github.ref}}]"
|
||||
exit 0
|
||||
fi
|
||||
bash ../firmware/bin/upload_bundle.sh ${{ inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_USER }} "${{ inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_PASS }}" ${{ inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_SERVER }} "${{env.SHORT_BOARD_NAME}}_obfuscated_public"
|
||||
|
||||
- name: Upload github action bundle obfuscated_public artifact
|
||||
if: ${{ contains(inputs.artifacts, 'obfuscated') && inputs.skip_uploading_obfuscated_bundle == 'false' }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{steps.find-out-white-label.outputs.white_label}}_bundle_${{env.SHORT_BOARD_NAME}}_obfuscated_public_${{env.current_date}}.zip
|
||||
path: ${{inputs.rusefi_dir}}/artifacts/${{steps.find-out-white-label.outputs.white_label}}_bundle_${{env.SHORT_BOARD_NAME}}_obfuscated_public.zip
|
||||
|
||||
- name: Upload github action bundle obfuscated_public_autoupdate artifact
|
||||
if: ${{ contains(inputs.artifacts, 'obfuscated') && inputs.skip_uploading_obfuscated_bundle == 'false' }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{steps.find-out-white-label.outputs.white_label}}_bundle_${{env.SHORT_BOARD_NAME}}_obfuscated_public_autoupdate_${{env.current_date}}.zip
|
||||
path: ${{inputs.rusefi_dir}}/artifacts/${{steps.find-out-white-label.outputs.white_label}}_bundle_${{env.SHORT_BOARD_NAME}}_obfuscated_public_autoupdate.zip
|
||||
|
||||
- uses: mukunku/tag-exists-action@v1.6.0
|
||||
if: ${{ inputs.new_tag != '' }}
|
||||
id: checkTag
|
||||
|
@ -536,14 +493,6 @@ runs:
|
|||
: Upload Tagged Daily Release Bundle
|
||||
bash ../firmware/bin/upload_bundle.sh ${{ env.RUSEFI_SSH_USER }} ${{ env.RUSEFI_SSH_PASS }} ${{ env.RUSEFI_SSH_SERVER }} ${{ env.BUNDLE_NAME }} ${{ inputs.new_tag }}
|
||||
|
||||
- name: Upload Obfuscated Tagged Daily Release Bundle
|
||||
if: ${{ contains(inputs.artifacts, 'obfuscated') && inputs.skip_uploading_obfuscated_bundle == 'false' && steps.tag.outputs.new_tag != ''}}
|
||||
working-directory: ${{inputs.rusefi_dir}}/artifacts
|
||||
shell: bash
|
||||
run: |
|
||||
: Upload Obfuscated Tagged Daily Release Bundle
|
||||
bash ../firmware/bin/upload_bundle.sh ${{ inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_USER }} "${{ inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_PASS }}" ${{ inputs.RUSEFI_OBFUSCATED_PUBLIC_SSH_SERVER }} "${{env.SHORT_BOARD_NAME}}_obfuscated_public" ${{ inputs.new_tag }}
|
||||
|
||||
- name: Create .properties file for action outputs
|
||||
if: ${{ inputs.gha_outputs_file != ''}}
|
||||
uses: 1arp/create-a-file-action@0.4.5
|
||||
|
|
Loading…
Reference in New Issue