Move SFTP xfer to happen before attach to release. Seeing some SSL errors in the github-action-publish-binaries action.

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2021-09-29 22:35:15 +01:00
parent 8d9a84a79f
commit 2e7da12d3f
+9 -9
View File
@@ -77,14 +77,6 @@ jobs:
run: |
mv pihole-FTL "${{ matrix.bin_name }}"
sha1sum pihole-FTL-* > ${{ matrix.bin_name }}.sha1
-
name: Attach binaries to release
if: ${{ github.event_name == 'release' }}
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: '${{ matrix.bin_name }}*'
-
name: Transfer Builds to Pi-hole server for pihole checkout
if: ${{ github.event_name != 'pull_request' }}
@@ -95,4 +87,12 @@ jobs:
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_KEY }}
source: "${{ matrix.bin_name }}*"
target: "${{ steps.branch_name.outputs.OUTPUT_DIR }}"
target: "${{ steps.branch_name.outputs.OUTPUT_DIR }}"
-
name: Attach binaries to release
if: ${{ github.event_name == 'release' }}
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: '${{ matrix.bin_name }}*'