From 646ead945d77ed5ed5356fb985fecb81cc198164 Mon Sep 17 00:00:00 2001 From: alifeee Date: Mon, 26 Aug 2024 23:06:15 +0100 Subject: [PATCH] do not use surge from package.json, install it --- .github/workflows/pull-request-preview.yml | 4 +++- package.json | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request-preview.yml b/.github/workflows/pull-request-preview.yml index bffa486..f8ed735 100644 --- a/.github/workflows/pull-request-preview.yml +++ b/.github/workflows/pull-request-preview.yml @@ -86,8 +86,10 @@ jobs: run: npm run build - name: Remove pdfs (filesize restraints) run: rm _site/pdfs/*.pdf + - name: Install surge + run: npm install -g surge - name: deploy to surge - run: npm run surge -- --token "${{ secrets.SURGE_TOKEN }}" --domain liputenpotest-${{ github.event.number }}.surge.sh + run: surge --token "${{ secrets.SURGE_TOKEN }}" --project _site --domain liputenpotest-${{ github.event.number }}.surge.sh # - name: set deployment status to success # id: successful_deployment diff --git a/package.json b/package.json index ce70338..096772d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "scripts": { "dev": "eleventy --serve", "build": "eleventy", - "surge": "surge --project _site", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [