Skip to content

Merge pull request #485 from digitalnsw/feature/breadcrumbs-mobile-up… #245

Merge pull request #485 from digitalnsw/feature/breadcrumbs-mobile-up…

Merge pull request #485 from digitalnsw/feature/breadcrumbs-mobile-up… #245

name: build-deploy-surge-backup
on:
push:
branches:
- 'master'
workflow_dispatch:
jobs:
build-staging:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm install
- run: npm run starterkit:build
- uses: actions/upload-artifact@v4
with:
name: dist
path: |
dist
deploy-staging:
needs: build-staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install -g surge
- uses: actions/download-artifact@v4
with:
name: dist
path: |
dist
- run: surge ./dist ${{ secrets.SURGE_DOMAIN_BACKUP }} --token ${{ secrets.SURGE_TOKEN }}