0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-13 03:30: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' if: needs.check-tag-exists.outputs.proceed == 'true'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: refringe/spt-build-node:1.0.1 image: refringe/spt-build-node:1.0.2
outputs: outputs:
build_type: ${{ steps.build-type.outputs.build_type }} build_type: ${{ steps.build-type.outputs.build_type }}
steps: steps:
@ -262,7 +262,7 @@ jobs:
needs: [check-tag-exists, build-server, build-modules, build-launcher] needs: [check-tag-exists, build-server, build-modules, build-launcher]
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: refringe/spt-build-node:1.0.1 image: refringe/spt-build-node:1.0.2
steps: steps:
- name: Clean Directory - name: Clean Directory
run: | run: |
@ -329,14 +329,11 @@ jobs:
shell: bash shell: bash
- name: Upload Release to HTTP Source - name: Upload Release to HTTP Source
uses: appleboy/scp-action@v0.1.7 run: |
with: cd /workspace/refringe/Build/
host: "${{ secrets.SFTP_HOST }}" echo "${{ secrets.SFTP_HOST_KEY }}" > known_host
username: "${{ secrets.SFTP_USERNAME }}" 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
password: "${{ secrets.SFTP_PASSWORD }}" shell: bash
port: "${{ secrets.SFTP_PORT }}"
source: "/workspace/refringe/Build/${{ steps.generate-filename.outputs.filename }}"
target: "/public/"
- name: Upload Release to Mega - name: Upload Release to Mega
id: upload-mega id: upload-mega

View File

@ -8,8 +8,9 @@ FROM node:20.10.0-bookworm
# - zstd (caching action dependancy) # - zstd (caching action dependancy)
# - tree (pretty print build directory structure) # - tree (pretty print build directory structure)
# - p7zip-full (the goat) # - p7zip-full (the goat)
# - sshpass (for automated SSH authentication)
RUN apt-get update && \ 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 && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*