diff --git a/.github/reviewer-lottery.yml b/.github/reviewer-lottery.yml deleted file mode 100644 index 2def358c0d..0000000000 --- a/.github/reviewer-lottery.yml +++ /dev/null @@ -1,5 +0,0 @@ -groups: - - name: noah - reviewers: 1 - usernames: - - NoahSaso diff --git a/.github/workflows/i18n-missing-keys.yml b/.github/workflows/i18n-missing-keys.yml deleted file mode 100644 index b0a08d6bd6..0000000000 --- a/.github/workflows/i18n-missing-keys.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: i18n Missing Keys - -on: - push: - branches: - - development - -jobs: - detect: - name: Detect - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '16' - cache: 'yarn' - - run: yarn install - # Run linter and store output. - - name: Lint - id: lint - run: | - output="$(yarn i18n lint-missing-keys)" - echo "LINT_OUTPUT<> $GITHUB_ENV - echo "$output" >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - # Attempt to find existing comment. - - name: Find Comment - uses: peter-evans/find-comment@v2 - id: fc - with: - issue-number: 778 - comment-author: 'github-actions[bot]' - body-includes: 'Auto-generated Missing i18n Keys' - # Create comment if does not exist. - - name: Create comment - if: steps.fc.outputs.comment-id == '' - uses: peter-evans/create-or-update-comment@v2 - with: - issue-number: 778 - body: | - # :yin_yang: Auto-generated Missing i18n Keys :yin_yang: - - Updated at ${{ github.event.head_commit.timestamp }} (HEAD -> ${{ github.event.head_commit.id }}) - - ```diff - ${{ env.LINT_OUTPUT }} - ``` - # Update comment if exists. - - name: Update comment - if: steps.fc.outputs.comment-id != '' - uses: peter-evans/create-or-update-comment@v2 - with: - edit-mode: replace - comment-id: ${{ steps.fc.outputs.comment-id }} - body: | - # :yin_yang: Auto-generated Missing i18n Keys :yin_yang: - - Updated at ${{ github.event.head_commit.timestamp }} (HEAD -> ${{ github.event.head_commit.id }}) - - ```diff - ${{ env.LINT_OUTPUT }} - ``` diff --git a/.github/workflows/reviewer-lottery.yml b/.github/workflows/reviewer-lottery.yml deleted file mode 100644 index 279aefea68..0000000000 --- a/.github/workflows/reviewer-lottery.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Request Review from noah -on: - pull_request_target: - types: [opened, ready_for_review, reopened] - -jobs: - request: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: uesteibar/reviewer-lottery@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/sentry-source-maps.yml b/.github/workflows/sentry-source-maps.yml deleted file mode 100644 index 56b2582870..0000000000 --- a/.github/workflows/sentry-source-maps.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Upload Source Maps to Sentry - -on: - push: - branches: - - main - - development - -env: - SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - NEXT_PUBLIC_SITE_URL: NEXT_PUBLIC_SITE_URL - NEXT_PUBLIC_SEARCH_URL: NEXT_PUBLIC_SEARCH_URL - NEXT_PUBLIC_SEARCH_API_KEY: NEXT_PUBLIC_SEARCH_API_KEY - NEXT_PUBLIC_SDA_DEFAULT_DAO_ADDRESS: NEXT_PUBLIC_SDA_DEFAULT_DAO_ADDRESS - NODE_OPTIONS: --max_old_space_size=4096 -jobs: - ci: - name: Lint, Build, & Upload - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '16' - cache: 'yarn' - - run: yarn install - - run: yarn lint - - run: yarn dapp build - - run: yarn sda build diff --git a/.github/workflows/vercel-preview-ci.yml b/.github/workflows/vercel-preview-ci.yml new file mode 100644 index 0000000000..9a81f732f0 --- /dev/null +++ b/.github/workflows/vercel-preview-ci.yml @@ -0,0 +1,21 @@ +name: Vercel Preview Deployment +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + branches-ignore: + - development_2.3 +jobs: + Deploy-Preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/vercel-prod-ci.yml b/.github/workflows/vercel-prod-ci.yml new file mode 100644 index 0000000000..08cda71b7a --- /dev/null +++ b/.github/workflows/vercel-prod-ci.yml @@ -0,0 +1,21 @@ +name: Vercel Production Deployment +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + branches: + - development_2.3 +jobs: + Deploy-Production: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} diff --git a/README.md b/README.md index 8db77187ff..cf811bb45c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,24 @@ You can find more info in our [documentation](https://docs.daodao.zone). Join the [DAO DAO Discord](https://discord.gg/sAaGuyW3D2) if you're interested in becoming a contributor. +## Deployment with Vercel +Because of the server memory resource requirements for the build of this +application, we are using Github Actions to deploy this applcation to Vercel. + +### Vercel Preview +- This workflow runs on any branch that isn't `main` and uses Vercel credentials to... + - authenticate with Github Secrets, + - pull preview build environment from Vercel, + - build the packages on the Github Actions runner, and + - deploy to preview the previously built packages. + +### Vercel Production +- This workflow runs on branch, `main`, and uses Vercel credentials to... + - authenticate with Github Secrets, + - pull production build environment from Vercel, + - build the packages on the Github Actions runner, and + - deploy to preview the previously built packages. + ## Development ### Clone this repo and install dependencies diff --git a/packages/utils/constants/chains.ts b/packages/utils/constants/chains.ts index 52ce6ceb1c..a3c708bf0c 100644 --- a/packages/utils/constants/chains.ts +++ b/packages/utils/constants/chains.ts @@ -650,6 +650,11 @@ export const SUPPORTED_CHAINS: SupportedChainConfig[] = [ govProp: 'https://testnet.ping.pub/Quasar%20Test/gov/REPLACE', wallet: 'https://testnet.ping.pub/Quasar%20Test/account/REPLACE', }, + indexes: { + search: 'quasar_testnet_daos', + // Use same as mainnet. + featured: 'quasar_featured_daos', + }, codeIds: { // https://github.com/CosmWasm/cw-plus // Cw1Whitelist: 60, @@ -688,6 +693,11 @@ export const SUPPORTED_CHAINS: SupportedChainConfig[] = [ govProp: 'https://ping.pub/Quasar/gov/REPLACE', wallet: 'https://ping.pub/Quasar/account/REPLACE', }, + indexes: { + search: 'quasar_daos', + // Use same as mainnet. + featured: 'quasar_featured_daos', + }, codeIds: { // https://github.com/CosmWasm/cw-plus // Cw1Whitelist: 60, // NA @@ -702,8 +712,8 @@ export const SUPPORTED_CHAINS: SupportedChainConfig[] = [ CwVesting: 73, DaoCore: 77, DaoMigrator: 79, - DaoPreProposeApprovalSingle: 81, - DaoPreProposeApprover: 83, + // DaoPreProposeApprovalSingle: 81, + // DaoPreProposeApprover: 83, DaoPreProposeMultiple: 58, DaoPreProposeSingle: 57, DaoProposalMultiple: 64,