Skip to content

Commit

Permalink
Merge pull request #227 from rsksmart/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
nicov-iov authored Jul 11, 2024
2 parents d92cba3 + f7fd5b2 commit b5afeb3
Show file tree
Hide file tree
Showing 25 changed files with 34,202 additions and 13,584 deletions.
2 changes: 1 addition & 1 deletion .env.mainnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VUE_APP_WS_URL=wss://be.explorer.rootstock.io
VUE_APP_APPS_URL=""
VUE_APP_NETWORK=mainnet
VUE_APP_STATS_URL=https://stats.rootstock.io
VUE_APP_GA_TAG=GTM-56J7JTD
VUE_APP_HOTJAR_ID=1857874
Expand Down
10 changes: 10 additions & 0 deletions .env.staging
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
VUE_APP_WS_URL=wss://explorer-testnet-api.plattie-dev.iovlabs.net
VUE_APP_NETWORK=testnet
VUE_APP_STATS_URL=https://stats.testnet.rootstock.io
VUE_APP_GA_TAG=UA-136026316-1
VUE_APP_HOTJAR_ID=1901396
VUE_APP_STREAM_MITM_URL=/mitm/index.html
VUE_APP_DOMAIN_TESTNET='https://explorer.testnet.rootstock.io/'
VUE_APP_DOMAIN_MAINNET='https://explorer.rootstock.io/'
VUE_APP_DOMAIN_STATS_TESTNET='https://stats.testnet.rootstock.io/'
VUE_APP_DOMAIN_STATS_MAINNET='https://stats.rootstock.io/'
2 changes: 1 addition & 1 deletion .env.testnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VUE_APP_WS_URL=wss://be.explorer.testnet.rootstock.io
VUE_APP_APPS_URL=https://apps.explorer.testnet.rsk.co
VUE_APP_NETWORK=testnet
VUE_APP_STATS_URL=https://stats.testnet.rootstock.io
VUE_APP_GA_TAG=UA-136026316-1
VUE_APP_HOTJAR_ID=1901396
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
'@vue/standard'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/staging-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: RSK Explorer staging build and deploy

on:
push:
branches: [staging]

jobs:
staging_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:staging

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

- name: Deploy site to S3
run: |
aws s3 sync --sse aws:kms --sse-kms-key-id ${{ secrets.STAGING_KMS_KEY_ID }} --delete --only-show-errors --exclude .gitkeep dist/ ${{ secrets.STAGING_S3_BUCKET }}
- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.STAGING_CLOUDFRONT_DISTRIBUTION }} --paths "/*"
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ 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

0 comments on commit b5afeb3

Please sign in to comment.