Skip to content

Commit 57a4bb2

Browse files
committed
chore: use surge.sh as site
1 parent 4cc05da commit 57a4bb2

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,10 @@ jobs:
4646
cache: 'yarn'
4747
- run: yarn install --frozen-lockfile
4848
- run: yarn nx build site --configuration=production --skip-nx-cache
49-
- uses: garygrossgarten/github-action-scp@release
49+
- run: cp ./dist/packages/site/index.html ./dist/packages/site/200.html
50+
- uses: dswistowski/surge-sh-action@v1
5051
with:
51-
local: './dist/packages/site'
52-
remote: '/usr/local/nginx/html/react-devui.com'
53-
host: ${{ secrets.SSH_HOST }}
54-
port: ${{ secrets.SSH_PORT }}
55-
username: ${{ secrets.SSH_USER }}
56-
password: ${{ secrets.SSH_PASSWORD }}
57-
rmRemote: true
58-
dotfiles: true
52+
domain: 'react-devui.surge.sh'
53+
project: './dist/packages/site'
54+
login: ${{ secrets.SURGE_LOGIN }}
55+
token: ${{ secrets.SURGE_TOKEN }}

0 commit comments

Comments
 (0)