updated lodash #73
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
name: Deploy RAWGraphs dev | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for tagged versions | |
on: | |
push: | |
branches: [master] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
deploy: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.x | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT" | |
- uses: actions/cache@v3 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn install | |
- name: Get short git hash | |
id: vars | |
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Build app | |
run: yarn build | |
env: | |
CI: false | |
REACT_APP_VERSION: ${{ steps.vars.outputs.sha_short }} | |
- name: List output files | |
run: find build/ -print | |
- name: FTP Deploy | |
uses: SamKirkland/FTP-Deploy-Action@v4.3.4 | |
with: | |
# Deployment destination server & path. Formatted as protocol://domain.com:port/full/destination/path/ | |
server: dev.rawgraphs.io | |
# FTP account username | |
username: ${{ secrets.FTP_USERNAME }} | |
# FTP account password | |
password: ${{ secrets.FTP_PASSWORD }} | |
# The local folder to copy, defaults to root project folder | |
local-dir: build/ | |
server-dir: dev.rawgraphs.io/ |