Skip to content

add: jkadhkjasnd

add: jkadhkjasnd #6

name: Transfer Build Files
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./all_in_docker/client
steps:
- name: Checkout Repository
uses: actions/checkout@v2
# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version: "16"
# - name: Install Dependencies
# run: npm install
# - name: Build Application
# run: |
# CI=false npm run build
# - name: List build directory contents
# run: ls -la build
- name: Setup SSH
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Transfer Build Files to Ubuntu Instance
#run: whoami
run: ssh -i ${{ secrets.SSH_PRIVATE_KEY }} ${{ secrets.REMOTE_USERNAME }}@${{ secrets.REMOTE_HOST }}