GitHub variables are complicated
This commit is contained in:
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -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"
|
||||
|
Reference in New Issue
Block a user