Git Product home page Git Product logo

ftp-deploy-action-example-react's Introduction

FTP-Deploy-Action-Example-React

An example of deploying a react project using FTP-Deploy-Action. The following example should work for most frameworks (angular, react, vue, etc)

You can see the results of this deployment by going to ftp-deploy-action-example-react.samkirkland.com

Build and Publish Front End Framework Website

Secrets

To add a secret go to the Settings tab in your project then select Secrets. Add a new Secret for each of the following

Secret Key Name Value
server ftp.samkirkland.com
username react-deploy-example@ftp-deploy-action-example-react.samkirkland.com
password YourPasswordHere
local-dir build/

YAML config file

The following is the exact contents of FTP-Deploy-Action-Example-React/.github/workflows/main.yml file

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

    - name: Use Node.js 12
      uses: actions/setup-node@v2-beta
      with:
        node-version: '12'
      
    - name: ๐Ÿ”จ Build Project
      run: |
        npm install
        npm run build
    
    - name: List output files
      run: find build/ -print
      
    - name: ๐Ÿ“‚ Sync files
      uses: SamKirkland/[email protected]
      with:
        server: ftp.samkirkland.com
        username: react-deploy-example@ftp-deploy-action-example-react.samkirkland.com
        password: ${{ secrets.FTP_PASSWORD }}
        local-dir: build/

ftp-deploy-action-example-react's People

Contributors

samkirkland avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.