Skip to content

try to update action #3 #399

try to update action #3

try to update action #3 #399

Workflow file for this run

name: Run on test
on:
push:
branches:
- 'master'
jobs:
build:
name: Build Artifacts for Test
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- name: Build Artifacts
uses: actions/checkout@v3
- name: Init Node.js
uses: actions/setup-node@v1
with:
node-version: 19.x
- name: Up Caches
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Generate deployable artifacts
run: |
yarn
yarn run prei18n:extract
yarn run i18n:extract
CI=false yarn build
- name: Store Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}
path: build
retention-days: 1
deploy:
needs: build
name: Deploy to Dev
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Extract Artifacts
uses: actions/download-artifact@v3
with:
name: ${{ github.sha }}
path: ~/build
- name: Deploy to host
uses: garygrossgarten/github-action-scp@8a27854bb4f124a497a67316e83783efda770119
with:
local: /home/runner/build
remote: /var/www/test
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
privateKey: ${{ secrets.KEY }}