Skip to content

test push github action #3

test push github action

test push github action #3

Workflow file for this run

name: DevOps-GitHubActions
on:
push:
branches:
- main
jobs:
# Build And deploy Job
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Dependencies
run: npm install
- name: Build Project
run: npm run build
env:
VITE_API_URL: ${{vars.VITE_API_URL}}
# - name: SSH Deployment
# uses: saranraj3195/sparkout-deployment@v2
# env:
# DEPLOY_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
# ARGS: '-avz --delete'
# SERVER_PORT: ${{ secrets.SERVER_PORT }}
# FOLDER: 'dist/*'
# SERVER_IP: ${{ secrets.SERVER_HOST }}
# USERNAME: ${{ secrets.USERNAME }}
# SERVER_DESTINATION: ${{ secrets.DEPLOYMENT_PATHFILE }}
- name: Fast FTP Action
uses: anvil-solutions/[email protected]
with:
server: ${{ secrets.SERVER_HOST}}
port: ${{ secrets.SERVER_PORT }}
username: ${{ secrets.USERNAME}}
password: ${{ secrets.FTP_PASSWORD }}
local_dir: ./dist
remote_dir: ${{ DEPLOYMENT_PATHFILE }}

Check failure on line 46 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / DevOps-GitHubActions

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 46, Col: 23): Unrecognized named-value: 'DEPLOYMENT_PATHFILE'. Located at position 1 within expression: DEPLOYMENT_PATHFILE