From 6f84d2ffd12b49b0382ce03c15f9bd2bb73fdab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Sun, 17 Dec 2023 13:13:43 -0500 Subject: [PATCH] Update workflow secrets and action versions --- .github/workflows/release.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b2a45a..4e011e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,11 +14,11 @@ jobs: image: ghcr.io/toltec-dev/base:v1.2 steps: - name: Checkout the Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build the binary run: ./build - name: Store the resulting artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: wget path: /root/wget @@ -29,7 +29,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') steps: - name: Fetch the built binary - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: wget - name: Transfer packages and index @@ -40,5 +40,7 @@ jobs: echo "${{ secrets.SSH_KNOWN_HOSTS }}" > private/known_hosts chmod 600 private/* version="$(echo "${{ github.ref }}" | cut -d / -f 3)" - scp -i private/id_rsa -o UserKnownHostsFile=private/known_hosts \ - wget "${{ secrets.REMOTE }}":/srv/toltec/thirdparty/bin/wget-"$version" + scp -P "${{ secrets.SSH_PORT }}" \ + -i private/id_rsa \ + -o UserKnownHostsFile=private/known_hosts \ + wget "${{ secrets.REMOTE_SSH }}":/srv/toltec/thirdparty/bin/wget-"$version"