Merge pull request #21 from Team-B1ND/hotfix/#20 #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
name: Production Deployment | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: 𧩠Install Modules | |
run: yarn | |
- name: π·ββοΈ Build Project | |
run: yarn build | |
env: | |
CI: false | |
- name: π Sync files | |
uses: SamKirkland/FTP-Deploy-Action@4.3.2 | |
with: | |
server: ${{ secrets.DODAM_FILEZILLA_IP }} | |
username: ${{ secrets.DODAM_FILEZILLA_USERNAME }} | |
password: ${{ secrets.DODAM_FILEZILLA_PWD }} | |
local-dir: ./build/ | |
port: 2021 | |
protocol: ftps |