Skip to content

Commit

Permalink
Fix(build-script): Upgrading package (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayavel-testsigma authored Nov 27, 2023
1 parent 6d30fe8 commit d35e691
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Update package information with default mirror
run: sudo sed -i 's|mirror+file:/etc/apt/apt-mirrors.txt|http://archive.ubuntu.com/ubuntu|' /etc/apt/sources.list && sudo apt-get update
- name: Install libvips
run: sudo apt-get install libvips
- uses: actions/checkout@v2
Expand Down Expand Up @@ -51,7 +53,7 @@ jobs:
TYPESENSE_COLLECTION: ${{ secrets.TYPESENSE_COLLECTION }}
TYPESENSE_API_KEY: ${{ secrets.TYPESENSE_API_KEY }}
TYPESENSE_SEARCH_API_KEY: ${{ secrets.TYPESENSE_SEARCH_API_KEY }}

- name: Start Gatsby server
run: npm run develop &
env:
Expand All @@ -76,4 +78,3 @@ jobs:

- name: Stop Gatsby server
run: lsof -i :8001 -t | xargs kill

6 changes: 4 additions & 2 deletions .github/workflows/staging-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
StagingDeploy:
runs-on: ubuntu-latest
steps:
- name: Update package information with default mirror
run: sudo sed -i 's|mirror+file:/etc/apt/apt-mirrors.txt|http://archive.ubuntu.com/ubuntu|' /etc/apt/sources.list && sudo apt-get update
- name: Install libvips
run: sudo apt-get install libvips
- uses: actions/checkout@v2
Expand Down Expand Up @@ -38,7 +40,7 @@ jobs:
echo TYPESENSE_SEARCH_API_KEY=${{ secrets.WEBSITE_STAGING_TYPESENSE_SEARCH_API_KEY }} >> .env
cat .env
- name: Set environment
run : sed -i 's/localhost/website.testsigma.com/g' src/environment.ts
run: sed -i 's/localhost/website.testsigma.com/g' src/environment.ts
- name: Build
run: |
PREFIX_PATHS=true npm run build && npm run deploy
Expand All @@ -53,7 +55,7 @@ jobs:
TYPESENSE_COLLECTION: ${{ secrets.WEBSITE_STAGING_TYPESENSE_COLLECTION }}
TYPESENSE_API_KEY: ${{ secrets.WEBSITE_STAGING_TYPESENSE_API_KEY }}
TYPESENSE_SEARCH_API_KEY: ${{ secrets.WEBSITE_STAGING_TYPESENSE_SEARCH_API_KEY }}

- name: Start Gatsby server
run: npm run develop &
env:
Expand Down

0 comments on commit d35e691

Please sign in to comment.