Skip to content

Commit

Permalink
add: transfer build files
Browse files Browse the repository at this point in the history
  • Loading branch information
sagunkhatri committed Jun 26, 2024
1 parent 7b0e826 commit 8dbf3a6
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 121 deletions.
87 changes: 0 additions & 87 deletions .github/workflows/build-test.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/main.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/s3.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/transfer-build-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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
r

0 comments on commit 8dbf3a6

Please sign in to comment.