Skip to content

Commit

Permalink
Update workflow secrets and action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
matteodelabre committed Dec 17, 2023
1 parent deaf908 commit 6f84d2f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"

0 comments on commit 6f84d2f

Please sign in to comment.