Skip to content

Commit

Permalink
Upgrade github action
Browse files Browse the repository at this point in the history
  • Loading branch information
osioalberto committed Jul 26, 2023
1 parent 6d933f2 commit 2ab7b08
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:
# 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@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"

- uses: actions/cache@v1
- 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 }}
Expand All @@ -38,7 +38,7 @@ jobs:

- name: Get short git hash
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Build app
run: yarn build
Expand All @@ -50,13 +50,14 @@ jobs:
run: find build/ -print

- name: FTP Deploy
uses: SamKirkland/FTP-Deploy-Action@3.1.1
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
# Deployment destination server & path. Formatted as protocol://domain.com:port/full/destination/path/
ftp-server: ftp://dev.rawgraphs.io/dev.rawgraphs.io/
server: dev.rawgraphs.io
# FTP account username
ftp-username: ${{ secrets.FTP_USERNAME }}
username: ${{ secrets.FTP_USERNAME }}
# FTP account password
ftp-password: ${{ secrets.FTP_PASSWORD }}
password: ${{ secrets.FTP_PASSWORD }}
# The local folder to copy, defaults to root project folder
local-dir: build
server-dir: dev.rawgraphs.io/

0 comments on commit 2ab7b08

Please sign in to comment.