mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
static HTML for S3 deployment (#1581)
* static HTML for S3 deployment * deploy `.out` folder
This commit is contained in:
parent
f8bbda0594
commit
25bdee16b9
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
- run: npm ci --legacy-peer-deps
|
- run: npm ci --legacy-peer-deps
|
||||||
|
|
||||||
- run: npm run build
|
- run: npm run build:static
|
||||||
env:
|
env:
|
||||||
NEXT_PUBLIC_INFURA_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_INFURA_PROJECT_ID }}
|
NEXT_PUBLIC_INFURA_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_INFURA_PROJECT_ID }}
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npm run pregenerate && next dev -p 8000",
|
"start": "npm run pregenerate && next dev -p 8000",
|
||||||
"build": "npm run pregenerate && next build",
|
"build": "npm run pregenerate && next build",
|
||||||
|
"build:static": "npm run build && next export",
|
||||||
"serve": "serve -s public/",
|
"serve": "serve -s public/",
|
||||||
"pregenerate": "bash scripts/pregenerate.sh",
|
"pregenerate": "bash scripts/pregenerate.sh",
|
||||||
"test": "npm run pregenerate && npm run lint && npm run type-check && npm run jest",
|
"test": "npm run pregenerate && npm run lint && npm run type-check && npm run jest",
|
||||||
|
@ -10,7 +10,7 @@ AWS_S3_BUCKET="www-market"
|
|||||||
set -e;
|
set -e;
|
||||||
|
|
||||||
function s3sync {
|
function s3sync {
|
||||||
aws s3 sync ./public s3://"$1" \
|
aws s3 sync ./out s3://"$1" \
|
||||||
--include "*" \
|
--include "*" \
|
||||||
--exclude "*.html" \
|
--exclude "*.html" \
|
||||||
--exclude "sw.js" \
|
--exclude "sw.js" \
|
||||||
@ -24,7 +24,7 @@ function s3sync {
|
|||||||
--delete \
|
--delete \
|
||||||
--acl public-read
|
--acl public-read
|
||||||
|
|
||||||
aws s3 sync ./public s3://"$1" \
|
aws s3 sync ./out s3://"$1" \
|
||||||
--exclude "*" \
|
--exclude "*" \
|
||||||
--include "*.html" \
|
--include "*.html" \
|
||||||
--include "sw.js" \
|
--include "sw.js" \
|
||||||
|
Loading…
Reference in New Issue
Block a user