Skip to content

Adjustments to new workflows. #58

Adjustments to new workflows.

Adjustments to new workflows. #58

Workflow file for this run

name: Build, Test and Transfer
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Build and Test:

Check failure on line 11 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build, Test and Transfer

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 11, Col: 3): The identifier 'Build and Test' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
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: 2