Skip to content

[Job]: Adding built, lint, test, and deployment job (#26) (#27) #1

[Job]: Adding built, lint, test, and deployment job (#26) (#27)

[Job]: Adding built, lint, test, and deployment job (#26) (#27) #1

Workflow file for this run

name: Deploy website on production
on:
push:
branches: ['production']
jobs:
setup_and_deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build --if-present
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ftp.dashboard.amitraikwar.in
username: u392139545.github_deploy_dashwave
password: ${{ secrets.HOSTINGER_DASHWAVE_FTP_PASSWORD }}
local-dir: ./build/
server-dir: ./