Skip to content

Merge pull request #252 from lsst-sqre/tickets/DM-40673-ltd-deploy #747

Merge pull request #252 from lsst-sqre/tickets/DM-40673-ltd-deploy

Merge pull request #252 from lsst-sqre/tickets/DM-40673-ltd-deploy #747

Workflow file for this run

name: CI
on:
push:
branches:
- master
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install npm packages
run: npm install .
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install npm packages
run: npm install .
- name: Build Gatsby site
run: npm run build
- name: Upload
if: github.ref == 'refs/heads/main'
uses: lsst-sqre/ltd-upload@v1
with:
project: 'www'
dir: 'public'
username: ${{ secrets.LTD_USERNAME }}
password: ${{ secrets.LTD_PASSWORD }}