Changed welcome h1 to h2. #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, Test and Transfer | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
jobs: | |
Build_and_Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/[email protected] | |
- name: Install Node Deps | |
uses: bahmutov/[email protected] | |
with: | |
working-directory: ./frontend | |
- name: NPM Run Build (Vite) | |
working-directory: ./frontend | |
run: npm run build | |
#run tests here eventually | |
- name: SCP Build Artifact to AWS | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
port: ${{ secrets.PORT }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
source: "frontend/build,frontend/package.json,frontend/package-lock.json" | |
target: "~/${{ secrets.DOMAIN }}" | |
rm: true | |
strip_components: 1 |