Skip to content

Merge pull request #97 from ynmstudio/feature/landingpage #10

Merge pull request #97 from ynmstudio/feature/landingpage

Merge pull request #97 from ynmstudio/feature/landingpage #10

name: GitHub Pages Deploy
on:
push:
branches:
- main
permissions:
contents: write
jobs:
test-landingpage:
name: Test Landingpage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install dependencies
run: |
cd landingpage/
npm ci
- name: Test Landingpage App
run: |
cd landingpage/
npm run lint
deploy-landingpage:
name: Deploy Landingpage to GitHub Pages
runs-on: ubuntu-latest
needs:
- test-landingpage
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install dependencies
run: |
cd landingpage/
npm ci
- name: Test Landingpage App
run: |
cd landingpage/
npm run i18n-extract
npm run i18n-translate
npm run build
- name: Save to GitHub Pages branch 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./landingpage/dist # The folder the action should deploy.
clean: true