BaseMax / React-Auto-Build-GitHub-Actions

Automate your ReactJS web build by getting help from GitHub Actions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Action to automate React Web build

Automate your ReactJS web build by getting help from GitHub Actions.

GitHub Action

Config file: https://github.com/BaseMax/ReactGlobalOnlineSummit-Actions/blob/main/.github/workflows/test1.yml

on: push
name: πŸš€ Deploy website on push
jobs:
  web-deploy:
    name: πŸŽ‰ Deploy
    runs-on: ubuntu-latest
    steps:
    - name: 🚚 Get latest code
      uses: actions/checkout@v3

    - name: Use Node.js 16
      uses: actions/setup-node@v3
      with:
        node-version: '16'
      
    - name: πŸ”¨ Build Project
      run: |
        npm install
        npm run build
    
    - name: List output files
      run: find build/ -print
      
    - name: FTP Deployer
      uses: sand4rt/ftp-deployer@v1.4
      with:
        sftp: true
        host: asrez.com
        port: 22
        username: asrez
        password: ${{ secrets.FTP_PASSWORD }}
        remote_folder: '/home/asrez/public_html/test-react.maxbase.org/'
        local_folder: 'build/'
        cleanup: false
        include: '[ "*", "**/*" ]'
        exclude: '["node_modules/**", ".github/**", ".git/**", "*.env"]'
        pasive: true

Copyright 2022, Max Base

About

Automate your ReactJS web build by getting help from GitHub Actions.

License:GNU General Public License v3.0


Languages

Language:JavaScript 41.9%Language:HTML 37.7%Language:CSS 20.4%