Skip to content

Rework working-directory for compute-js build #15

Rework working-directory for compute-js build

Rework working-directory for compute-js build #15

Workflow file for this run

name: Deploy site
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install project dependencies
run: npm install
- name: Build project
run: npm run build
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Install Fastly dependencies
run: |
cd compute-js
npm install
- name: fastly compute deploy
uses: fastly/compute-actions@v5
with:
project_directory: compute-js
comment: “Deployed via GitHub Actions”
env:
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}