Skip to content

Commit

Permalink
do not use surge from package.json, install it
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Aug 26, 2024
1 parent 5ee5ff9 commit 646ead9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pull-request-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"scripts": {
"dev": "eleventy --serve",
"build": "eleventy",
"surge": "surge --project _site",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
Expand Down

0 comments on commit 646ead9

Please sign in to comment.