Skip to content

Commit

Permalink
Fix surge deploy example
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeorge committed May 19, 2021
1 parent e678d57 commit 3d0824b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/_workflow-samples/deploy-surge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Restore dist cache
- name: Restore node_modules
uses: actions/cache@v2
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}

- name: Restore dist cache
uses: actions/cache@v2
id: cache-dist
with:
path: dist
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}

- name: Deploy to Surge
run: |
cp ./dist/index.html ./dist/200.html
npm install -g surge
surge ./dist ${{ env.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}
node_modules/surge/lib/cli.js ./dist ${{ env.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}

0 comments on commit 3d0824b

Please sign in to comment.