GitHub variables are complicated

This commit is contained in:
CommanderRedYT
2021-12-01 15:14:03 +01:00
committed by GitHub
parent eb7f5a0523
commit 4411a82348

View File

@ -61,21 +61,21 @@ jobs:
- name: Prepare to upload
run: |
mkdir build_${{ matrix.node }}_${ GITHUB_SHA }
cp build_${{ matrix.node }}/bobbyquad_${{ matrix.node }}.bin build_${{ matrix.node }}_${ GITHUB_SHA }/
cp build_${{ matrix.node }}/bobbyquad_${{ matrix.node }}.elf build_${{ matrix.node }}_${ GITHUB_SHA }/
cp build_${{ matrix.node }}/bootloader/bootloader.bin build_${{ matrix.node }}_${ GITHUB_SHA }/
cp build_${{ matrix.node }}/bootloader/bootloader.elf build_${{ matrix.node }}_${ GITHUB_SHA }/
cp build_${{ matrix.node }}/partition_table/partition-table.bin build_${{ matrix.node }}_${ GITHUB_SHA }/
mkdir build_${{ matrix.node }}_${{ github.sha }}
cp build_${{ matrix.node }}/bobbyquad_${{ matrix.node }}.bin build_${{ matrix.node }}_${{ github.sha }}/
cp build_${{ matrix.node }}/bobbyquad_${{ matrix.node }}.elf build_${{ matrix.node }}_${{ github.sha }}/
cp build_${{ matrix.node }}/bootloader/bootloader.bin build_${{ matrix.node }}_${{ github.sha }}/
cp build_${{ matrix.node }}/bootloader/bootloader.elf build_${{ matrix.node }}_${{ github.sha }}/
cp build_${{ matrix.node }}/partition_table/partition-table.bin build_${{ matrix.node }}_${{ github.sha }}/
- name: Deploy to file-host
uses: up9cloud/action-rsync@v1.3
env:
HOST: commanderred.xyz
KEY: ${{ secrets.RSYNC_SSH_KEY }}
TARGET: /home/github
TARGET: /home/github/${{ github.sha }}
USER: github
SSH_ARGS: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
SOURCE: 'build_${{ matrix.node }}_${ GITHUB_SHA }/'
PRE_SCRIPT: "echo Uploading to '/home/github'"
SOURCE: 'build_${{ matrix.node }}_${{ github.sha }}'
PRE_SCRIPT: "echo Uploading to '/home/github/${{ github.sha }}'"
POST_SCRIPT: "echo Upload done"