Merge pull request #162 from bobbycar-graz/temporary-disable-artifact-upload

Temporary disable artifact upload
This commit is contained in:
2021-12-19 03:52:07 +01:00
committed by GitHub

View File

@ -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