-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #543 from testsigmahq/fix/gatsby-cache
Reverted "fix: Clean the cached versions on Gatsby build"
- Loading branch information
Showing
2 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: 'CD' | ||
name: "CD" | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- "main" | ||
jobs: | ||
Deploy: | ||
runs-on: ubuntu-latest | ||
|
@@ -15,13 +15,13 @@ jobs: | |
- name: Setup Node 18 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
node-version: "18" | ||
- name: Install dependencies | ||
run: | | ||
npm i --force --unsafe-perm | ||
- name: Force installing sharp | ||
run: npm install --ignore-scripts=false --verbose [email protected] --unsafe-perm --force | ||
- name: 'Create env file' | ||
- name: "Create env file" | ||
run: | | ||
rm -rf .env | ||
touch .env | ||
|
@@ -41,11 +41,11 @@ jobs: | |
cat .env | ||
- name: Build | ||
run: | | ||
PREFIX_PATHS=true npm run clean && npm run build && npm run deploy | ||
PREFIX_PATHS=true npm run build && npm run deploy | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: 'us-east-1' | ||
AWS_DEFAULT_REGION: "us-east-1" | ||
AWS_DEFAULT_OUTPUT: json | ||
TYPESENSE_HOST: ${{ secrets.TYPESENSE_HOST }} | ||
TYPESENSE_PORT: ${{ secrets.TYPESENSE_PORT }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: 'Staging CD' | ||
name: "Staging CD" | ||
on: | ||
push: | ||
branches: | ||
- 'dev' | ||
- "dev" | ||
jobs: | ||
StagingDeploy: | ||
runs-on: ubuntu-latest | ||
|
@@ -15,14 +15,14 @@ jobs: | |
- name: Setup Node 18 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
node-version: "18" | ||
- name: Install dependencies | ||
run: | | ||
rm -rf .cache node_modules | ||
npm i --force --unsafe-perm | ||
- name: Force installing sharp | ||
run: npm install --ignore-scripts=false --verbose [email protected] --unsafe-perm --force | ||
- name: 'Create env file' | ||
- name: "Create env file" | ||
run: | | ||
rm -rf .env | ||
touch .env | ||
|
@@ -44,11 +44,11 @@ jobs: | |
run: sed -i 's/localhost/website.testsigma.com/g' src/environment.ts | ||
- name: Build | ||
run: | | ||
PREFIX_PATHS=true npm run clean && npm run build && npm run deploy | ||
PREFIX_PATHS=true npm run build && npm run deploy | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.WEBSITE_STAGING_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.WEBSITE_STAGING_AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: 'us-east-1' | ||
AWS_DEFAULT_REGION: "us-east-1" | ||
AWS_DEFAULT_OUTPUT: json | ||
TYPESENSE_HOST: ${{ secrets.WEBSITE_STAGING_TYPESENSE_HOST }} | ||
TYPESENSE_PORT: ${{ secrets.WEBSITE_STAGING_TYPESENSE_PORT }} | ||
|