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": [