Skip to content

Commit

Permalink
ci: update workflow files to use local netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
AtelyPham committed Aug 14, 2023
1 parent bf3c1ad commit 3334338
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-bridge-dapp-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_BRIDGE_SITE_ID }}
with:
args: deploy context=deploy-preview site=$NETLIFY_BRIDGE_SITE_ID --dir=./dist/apps/bridge-dapp/
args: deploy context=deploy-preview site=$NETLIFY_BRIDGE_SITE_ID --dir=./dist/apps/bridge-dapp/ --filter=@webb-tools/bridge-dapp

- name: Netlify Preview URL
# Use master branch to fix issue with entrypoint.sh script
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/deploy-faucet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ jobs:
echo NEXT_PUBLIC_TWITTER_CLIENT_ID=${{ secrets.NEXT_PUBLIC_TWITTER_CLIENT_ID }} >> .env
echo TWITTER_CLIENT_SECRET=${{ secrets.TWITTER_CLIENT_SECRET }} >> .env
- name: Install netlify-cli
run: yarn add -D -W netlify-cli

- name: Build project
# Fix: JavaScript heap out of memory
# https://github.com/actions/runner-images/issues/70#issuecomment-1191708172
Expand All @@ -63,7 +60,7 @@ jobs:
id: deploy-netlify
shell: bash
run: |
COMMAND=$(echo "npx netlify deploy --build context=deploy-preview --site $NETLIFY_FAUCET_ID --auth $NETLIFY_AUTH_TOKEN --dir=./dist/apps/faucet/.next" )
COMMAND=$(echo "yarn netlify deploy --build context=deploy-preview --site $NETLIFY_FAUCET_ID --auth $NETLIFY_AUTH_TOKEN --dir=./dist/apps/faucet/.next --filter=@webb-tools/faucet" )
OUTPUT=$(sh -c "$COMMAND")
echo "response<<EOF" >> $GITHUB_OUTPUT
echo "$OUTPUT" >> $GITHUB_OUTPUT
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/deploy-hubble-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Install netlify-cli
run: yarn add -D -W netlify-cli

- name: Build project
# Fix: JavaScript heap out of memory
# https://github.com/actions/runner-images/issues/70#issuecomment-1191708172
Expand All @@ -56,7 +53,7 @@ jobs:
id: deploy-netlify
shell: bash
run: |
COMMAND=$(echo "npx netlify deploy --build context=deploy-preview --site $NETLIFY_HUBBLE_STATS_ID --auth $NETLIFY_AUTH_TOKEN --dir=./dist/apps/hubble-stats/.next" )
COMMAND=$(echo "yarn netlify deploy --build context=deploy-preview --site $NETLIFY_HUBBLE_STATS_ID --auth $NETLIFY_AUTH_TOKEN --dir=./dist/apps/hubble-stats/.next --filter=@webb-tools/hubble-stats" )
OUTPUT=$(sh -c "$COMMAND")
echo "response<<EOF" >> $GITHUB_OUTPUT
echo "$OUTPUT" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-stats-dapp-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
args: deploy context=deploy-preview site=$NETLIFY_SITE_ID --dir=./dist/apps/stats-dapp/
args: deploy context=deploy-preview site=$NETLIFY_SITE_ID --dir=./dist/apps/stats-dapp/ --filter=@webb-tools/stats-dapp

- name: Netlify Preview URL
# Use master branch to fix issue with entrypoint.sh script
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/deploy-tangle-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ jobs:
echo NOTION_TOKEN_V2=${{ secrets.NOTION_TOKEN_V2 }} >> .env
echo NOTION_ACTIVE_USER=${{ secrets.NOTION_ACTIVE_USER }} >> .env
- name: Install netlify-cli
run: yarn add -D -W netlify-cli

- name: Build project
# Fix: JavaScript heap out of memory
# https://github.com/actions/runner-images/issues/70#issuecomment-1191708172
Expand All @@ -64,7 +61,7 @@ jobs:
id: deploy-netlify
shell: bash
run: |
COMMAND=$(echo "npx netlify deploy --build context=deploy-preview --site $NETLIFY_TANGLE_ID --auth $NETLIFY_AUTH_TOKEN --dir=./dist/apps/tangle-website/.next" )
COMMAND=$(echo "yarn netlify deploy --build context=deploy-preview --site $NETLIFY_TANGLE_ID --auth $NETLIFY_AUTH_TOKEN --dir=./dist/apps/tangle-website/.next --filter=@webb-tools/tangle-website" )
OUTPUT=$(sh -c "$COMMAND")
echo "response<<EOF" >> $GITHUB_OUTPUT
echo "$OUTPUT" >> $GITHUB_OUTPUT
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/deploy-webbsite-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ jobs:
echo NOTION_BLOG_INTEGRATION_TOKEN=${{ secrets.NOTION_BLOG_INTEGRATION_TOKEN }} >> .env
echo NOTION_BLOG_INTEGRATION_VIDEOS_DATABASE_ID=${{ secrets.NOTION_BLOG_INTEGRATION_VIDEOS_DATABASE_ID }} >> .env
- name: Install netlify-cli
run: yarn add -D -W netlify-cli

- name: Build project
# Fix: JavaScript heap out of memory
# https://github.com/actions/runner-images/issues/70#issuecomment-1191708172
Expand All @@ -67,7 +64,7 @@ jobs:
id: deploy-netlify
shell: bash
run: |
COMMAND=$(echo "npx netlify deploy --build context=deploy-preview --site $NETLIFY_WEBBSITE_ID --auth $NETLIFY_AUTH_TOKEN --dir=./dist/apps/webbsite/.next" )
COMMAND=$(echo "yarn netlify deploy --build context=deploy-preview --site $NETLIFY_WEBBSITE_ID --auth $NETLIFY_AUTH_TOKEN --dir=./dist/apps/webbsite/.next --filter=@webb-tools/webbsite" )
OUTPUT=$(sh -c "$COMMAND")
echo "response<<EOF" >> $GITHUB_OUTPUT
echo "$OUTPUT" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 3334338

Please sign in to comment.