Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop to master #191

Merged
merged 17 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .env.development

This file was deleted.

6 changes: 6 additions & 0 deletions .env.mainnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VUE_APP_WS_URL=wss://backend.explorer.rsk.co
VUE_APP_APPS_URL=""
VUE_APP_STATS_URL=https://stats.rsk.co
VUE_APP_GA_TAG=GTM-56J7JTD
VUE_APP_HOTJAR_ID=1857874
VUE_APP_STREAM_MITM_URL=/mitm/index.html
5 changes: 0 additions & 5 deletions .env.production

This file was deleted.

6 changes: 6 additions & 0 deletions .env.testnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VUE_APP_WS_URL=wss://be.explorer.testnet.rsk.co
VUE_APP_APPS_URL=https://apps.explorer.testnet.rsk.co
VUE_APP_STATS_URL=https://stats.testnet.rsk.co
VUE_APP_GA_TAG=UA-136026316-1
VUE_APP_HOTJAR_ID=1901396
VUE_APP_STREAM_MITM_URL=/mitm/index.html
40 changes: 40 additions & 0 deletions .github/workflows/testnet-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: RSK Explorer testnet build and deploy

on:
push:
branches: [develop]

jobs:
testnet_build_and_deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node 16
uses: actions/setup-node@v1
with:
node-version: "16"

- name: Install dependencies
run: npm ci

- name: Build site
run: npm run build-with-tracking:testnet

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.TESTNET_ROLE_ARN }}
aws-region: ${{ secrets.TESTNET_AWS_REGION }}

- name: Deploy site to S3
run: |
aws s3 sync --sse aws:kms --sse-kms-key-id ${{ secrets.TESTNET_KMS_KEY_ID }} --delete --only-show-errors --exclude .gitkeep dist/ ${{ secrets.TESTNET_S3_BUCKET }}
- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.TESTNET_CLOUDFRONT_DISTRIBUTION }} --paths "/*"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm run dev-with-tracking
# build for production with minification
npm run build

# build for production with google tracking and hotjar
# build for production with google tracking and hotjar
# you must set the GA-TAG and HOTJAR_ID first, see 'Settings'
npm run build-with-tracking

Expand All @@ -41,6 +41,7 @@ The configuration is provided through this environment variables:
- **STATS_URL**: rsk stats web (link redirect the 'stats' link)
- **GA_TAG**: (optional) Google analytics tag.
- **HOTJAR_ID**: (optional) Hotjar ID.
- **APPS_URL**: rsk apps web (link redirect the 'apps' link)

E.g. *to change the backend url :*

Expand Down
Loading
Loading