Merge pull request #78 from savoirfairelinux/olopezsumalaviachum-1611… #41
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: 🚀 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/ |