From a86f27748f8605808d5317e4ed392866a348bfa2 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Sun, 19 Dec 2021 03:40:14 +0100 Subject: [PATCH] Temporary disable artifact upload --- .github/workflows/main.yml | 72 +++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a79ed6..e7d60c0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -111,40 +111,40 @@ jobs: build_${{ matrix.node }}/bootloader/bootloader.elf build_${{ matrix.node }}/partition_table/partition-table.bin - - name: Prepare to upload - run: | - mkdir ${{ matrix.node }} - cp build_${{ matrix.node }}/bobbyquad_${{ matrix.node }}.bin ${{ matrix.node }}/${{ steps.vars.outputs.sha_short }}.${{ steps.vars.outputs.branch }}.bin - cp build_${{ matrix.node }}/bobbyquad_${{ matrix.node }}.elf ${{ matrix.node }}/${{ steps.vars.outputs.sha_short }}.${{ steps.vars.outputs.branch }}.elf - echo ${{ steps.vars.outputs.sha_short }} - echo Prepare for upload from ${{ matrix.node }}/ to /home/github/builds/${{ matrix.node }} + # disabled, failed to upload binaries last time + #- name: Prepare to upload + # run: | + # mkdir ${{ matrix.node }} + # cp build_${{ matrix.node }}/bobbyquad_${{ matrix.node }}.bin ${{ matrix.node }}/${{ steps.vars.outputs.sha_short }}.${{ steps.vars.outputs.branch }}.bin + # cp build_${{ matrix.node }}/bobbyquad_${{ matrix.node }}.elf ${{ matrix.node }}/${{ steps.vars.outputs.sha_short }}.${{ steps.vars.outputs.branch }}.elf + # echo ${{ steps.vars.outputs.sha_short }} + # echo Prepare for upload from ${{ matrix.node }}/ to /home/github/builds/${{ matrix.node }} + + #- name: Deploy to file-host + # uses: up9cloud/action-rsync@v1.3 + # env: + # HOST: commanderred.xyz + # KEY: ${{ secrets.RSYNC_SSH_KEY }} + # TARGET: /home/github/tmp + # USER: github + # SSH_ARGS: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' + # SOURCE: '${{ matrix.node }}' + # POST_SCRIPT: "echo Upload done" - - - name: Deploy to file-host - uses: up9cloud/action-rsync@v1.3 - env: - HOST: commanderred.xyz - KEY: ${{ secrets.RSYNC_SSH_KEY }} - TARGET: /home/github/tmp - USER: github - SSH_ARGS: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' - SOURCE: '${{ matrix.node }}' - POST_SCRIPT: "echo Upload done" - - - name: Create Symlink on server - uses: appleboy/ssh-action@master - with: - host: commanderred.xyz - username: github - key: ${{ secrets.RSYNC_SSH_KEY }} - port: 22 - script: | - mkdir -p /home/github/builds/${{ matrix.node }} - mv /home/github/tmp/${{ matrix.node }}/* /home/github/builds/${{ matrix.node }}/ - rm /home/github/tmp/${{ matrix.node }} -rf - rm -f /home/github/builds/${{ matrix.node }}/latest.bin - rm -f /home/github/builds/${{ matrix.node }}/${{ steps.vars.outputs.branch }}.latest.bin - ln -s /home/github/builds/${{ matrix.node }}/${{ steps.vars.outputs.sha_short }}.${{ steps.vars.outputs.branch }}.bin /home/github/builds/${{ matrix.node }}/latest.bin - ln -s /home/github/builds/${{ matrix.node }}/${{ steps.vars.outputs.sha_short }}.${{ steps.vars.outputs.branch }}.bin /home/github/builds/${{ matrix.node }}/${{ steps.vars.outputs.branch }}.latest.bin - cd bobbycar-boardcomputer-firmware - git pull + #- name: Create Symlink on server + # uses: appleboy/ssh-action@master + # with: + # host: commanderred.xyz + # username: github + # key: ${{ secrets.RSYNC_SSH_KEY }} + # port: 22 + # script: | + # mkdir -p /home/github/builds/${{ matrix.node }} + # mv /home/github/tmp/${{ matrix.node }}/* /home/github/builds/${{ matrix.node }}/ + # rm /home/github/tmp/${{ matrix.node }} -rf + # rm -f /home/github/builds/${{ matrix.node }}/latest.bin + # rm -f /home/github/builds/${{ matrix.node }}/${{ steps.vars.outputs.branch }}.latest.bin + # ln -s /home/github/builds/${{ matrix.node }}/${{ steps.vars.outputs.sha_short }}.${{ steps.vars.outputs.branch }}.bin /home/github/builds/${{ matrix.node }}/latest.bin + # ln -s /home/github/builds/${{ matrix.node }}/${{ steps.vars.outputs.sha_short }}.${{ steps.vars.outputs.branch }}.bin /home/github/builds/${{ matrix.node }}/${{ steps.vars.outputs.branch }}.latest.bin + # cd bobbycar-boardcomputer-firmware + # git pull