0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-12 17:10:45 -05:00

Removed the SFTP upload action and wrote my own.

This commit is contained in:
Refringe 2024-03-09 00:29:52 -05:00
parent d3f9d15f58
commit 518c99d845
Signed by: Refringe
GPG Key ID: 7715B85B4A6306ED
2 changed files with 9 additions and 11 deletions

View File

@ -43,7 +43,7 @@ jobs:
if: needs.check-tag-exists.outputs.proceed == 'true'
runs-on: ubuntu-latest
container:
image: refringe/spt-build-node:1.0.1
image: refringe/spt-build-node:1.0.2
outputs:
build_type: ${{ steps.build-type.outputs.build_type }}
steps:
@ -262,7 +262,7 @@ jobs:
needs: [check-tag-exists, build-server, build-modules, build-launcher]
runs-on: ubuntu-latest
container:
image: refringe/spt-build-node:1.0.1
image: refringe/spt-build-node:1.0.2
steps:
- name: Clean Directory
run: |
@ -329,14 +329,11 @@ jobs:
shell: bash
- name: Upload Release to HTTP Source
uses: appleboy/scp-action@v0.1.7
with:
host: "${{ secrets.SFTP_HOST }}"
username: "${{ secrets.SFTP_USERNAME }}"
password: "${{ secrets.SFTP_PASSWORD }}"
port: "${{ secrets.SFTP_PORT }}"
source: "/workspace/refringe/Build/${{ steps.generate-filename.outputs.filename }}"
target: "/public/"
run: |
cd /workspace/refringe/Build/
echo "${{ secrets.SFTP_HOST_KEY }}" > known_host
sshpass -p ${{ secrets.SFTP_PASSWORD }} scp -o UserKnownHostsFile=known_host -o StrictHostKeyChecking=yes "/workspace/refringe/Build/${{ steps.generate-filename.outputs.filename }}" ${{ secrets.SFTP_USERNAME }}@${{ secrets.SFTP_HOST }}:/public
shell: bash
- name: Upload Release to Mega
id: upload-mega

View File

@ -8,8 +8,9 @@ FROM node:20.10.0-bookworm
# - zstd (caching action dependancy)
# - tree (pretty print build directory structure)
# - p7zip-full (the goat)
# - sshpass (for automated SSH authentication)
RUN apt-get update && \
apt-get install -y wget git git-lfs zstd tree p7zip-full && \
apt-get install -y wget git git-lfs zstd tree p7zip-full sshpass && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*