We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6fc0e94 + 4418b47 commit 0b6dc85Copy full SHA for 0b6dc85
.github/workflows/pwa-testnet.yml
@@ -8,7 +8,8 @@ on:
8
9
env:
10
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
11
- PREVIEW_DOMAIN: https://${{ github.ref_name }}-adamant-testnet.surge.sh
+ PREVIEW_DOMAIN: ${{ github.ref_name == 'master' && 'https://msg-adamant-testnet.surge.sh' || 'https://dev-adamant-testnet.surge.sh' }}
12
+ CUSTOM_DOMAIN: ${{ github.ref_name == 'master' && 'http://msg-testnet.adamant.im' || 'http://dev-testnet.adamant.im' }}
13
14
jobs:
15
build-and-deploy-to-surge:
@@ -41,3 +42,4 @@ jobs:
41
42
run: |
43
npm install --global surge
44
surge ./dist ${{ env.PREVIEW_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}
45
+ surge ./dist ${{ env.CUSTOM_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}
0 commit comments