Skip to content

Merge pull request #495 from digitalnsw/dependabot/github_actions/Jam… #251

Merge pull request #495 from digitalnsw/dependabot/github_actions/Jam…

Merge pull request #495 from digitalnsw/dependabot/github_actions/Jam… #251

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 }}