From 4411a82348530342519b45da98573c91afa969c2 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Wed, 1 Dec 2021 15:14:03 +0100 Subject: [PATCH] GitHub variables are complicated --- .github/workflows/main.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 66ed1d3..7bcadac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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"