Skip to content

Merge pull request #19 from rishi-raj-jain/rishi-raj-jain-patch-11 #40

Merge pull request #19 from rishi-raj-jain/rishi-raj-jain-patch-11

Merge pull request #19 from rishi-raj-jain/rishi-raj-jain-patch-11 #40

Workflow file for this run

name: Deploy to Edgio
on:
push:
workflow_dispatch:
jobs:
deploy-to-edgio:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm install
- name: Deploy to Edgio
run: npm run edgio:deploy -- -e=next --token=$EDGIO_DEPLOY_TOKEN
env:
EDGIO_DEPLOY_TOKEN: ${{secrets.EDGIO_DEPLOY_TOKEN}}