Skip to content

Merge pull request #81 from savoirfairelinux/olopezsumalaviachum-footer2 #44

Merge pull request #81 from savoirfairelinux/olopezsumalaviachum-footer2

Merge pull request #81 from savoirfairelinux/olopezsumalaviachum-footer2 #44

name: 🚀 Build and deploy subdomain
on:
push:
branches:
- subdomain_aom
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'npm'
- name: Install dependencies
run: npm i
- name: Install Browser List
run: npx browserslist@latest --update-db
- name: Build gatsby for translation
run: npm run build
- name: Extract translations
run: npm run extract
- name: Compile translations
run: npm run compile
- name: Build gatsby
run: npm run build
- name: 📂 Deploy to aom.prismref.ca
uses: SamKirkland/[email protected]
with:
server: ftp.prismref.ca
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
local-dir: public/
server-dir: /aom.prismref.ca/