Skip to content

Commit

Permalink
Merge pull request #44 from Vigilance-DAO/add-socials
Browse files Browse the repository at this point in the history
Add socials
  • Loading branch information
VenkatTeja authored Aug 5, 2023
2 parents fac7542 + 58cf559 commit b61d2c1
Show file tree
Hide file tree
Showing 100 changed files with 3,251 additions and 395,386 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/pr_build_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build Check

on:
pull_request:
branches: [ "staging" ]

workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test scenario tags'

# Tests have been split into various categories to reduce runtime and ensure rough 15-20min to complete all tests
jobs:
build-publish:
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.14.0]
env:
EXTENSION_ID: olgmmbfdmfbnihhcfhalglddbjobgpli
steps:
- name: "Checkout this repo"
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}


- name: "Setup .env"
run: |
cd chrome-extension
touch .env
echo 'REACT_APP_SUPPORTED_NETWORKS=80001' >> .env
echo 'REACT_APP_DEFAULT_NETWORK=80001' >> .env
echo 'REACT_APP_WEB3_STORAGE_KEY=${{secrets.REACT_APP_WEB3_STORAGE_KEY}}' >> .env
echo 'REACT_APP_THEGRAPH_URL=https://api.thegraph.com/subgraphs/name/venkatteja/vigilancedao' >> .env
- name: "Install node_modules"
run: |
cd chrome-extension
npm install
- name: "Create release build"
run: |
cd chrome-extension
npm run release
zip -r chrome-extension-${{ github.event.pull_request.head.sha }}.zip build
106 changes: 106 additions & 0 deletions .github/workflows/push_build_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: Build & Upload release

on:
push:
branches: [ "staging" ]

workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test scenario tags'

# Tests have been split into various categories to reduce runtime and ensure rough 15-20min to complete all tests
jobs:
build-publish:
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [16.14.0]
env:
EXTENSION_ID: olgmmbfdmfbnihhcfhalglddbjobgpli
steps:
- name: "Checkout this repo"
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: "Setup .env"
run: |
cd chrome-extension
touch .env
echo 'REACT_APP_SUPPORTED_NETWORKS=80001' >> .env
echo 'REACT_APP_DEFAULT_NETWORK=80001' >> .env
echo 'REACT_APP_WEB3_STORAGE_KEY=${{secrets.REACT_APP_WEB3_STORAGE_KEY}}' >> .env
echo 'REACT_APP_THEGRAPH_URL=https://api.thegraph.com/subgraphs/name/venkatteja/vigilancedao' >> .env
- name: "Install node_modules"
run: |
cd chrome-extension
npm install
- name: "Create release build"
run: |
cd chrome-extension
npm run release
zip -r chrome-extension.zip build
# - name: Install webstore cli
# run: |-
# npm install -g chrome-webstore-upload-cli

# # acc: vedik....@gm... : Vigilance-dao
# - name: Upload step
# run: |-
# cd chrome-extension
# chrome-webstore-upload upload --source chrome-extension.zip --extension-id ${{ env.EXTENSION_ID }} --client-id ${{ secrets.CI_GOOGLE_CLIENT_ID }} --client-secret ${{ secrets.CI_GOOGLE_CLIENT_SECRET }} --refresh-token ${{ secrets.CI_GOOGLE_REFRESH_TOKEN }}

# - uses: wemogy/next-version-action@2.0.2
# id: release-version
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# projects: 'Single'

# - name: get-npm-version
# id: package-version
# uses: martinbeentjes/npm-get-version-action@v1.3.1
# with:
# path: chrome-extension\public\manifest.json

- name: Read manifest.json
id: set_version
run: |
echo 'MANIFEST_JSON<<EOF' >> $GITHUB_ENV
cat ./chrome-extension/public/manifest.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Get current version
run: echo '${{ fromJson(env.MANIFEST_JSON).version }}'

- name: Create Pre-Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ fromJson(env.MANIFEST_JSON).version }}
release_name: Release ${{ fromJson(env.MANIFEST_JSON).version }}
draft: false
prerelease: true

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./chrome-extension/chrome-extension.zip
asset_name: chrome-extension.zip
asset_content_type: application/zip
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ _prisma
package-lock.json
yarn.lock

chrome-extension-build/static/*
chrome-extension-build/static/*

1 change: 0 additions & 1 deletion chrome-extension-build/.gitignore

This file was deleted.

42 changes: 0 additions & 42 deletions chrome-extension-build/alert.html

This file was deleted.

Binary file removed chrome-extension-build/assets/discord.png
Binary file not shown.
Binary file removed chrome-extension-build/assets/email.png
Binary file not shown.
Binary file removed chrome-extension-build/assets/new_tab_link.png
Binary file not shown.
Binary file removed chrome-extension-build/assets/website.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alert.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alerticon.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alerticon19-red.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alerticon19.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alerticon38-red.png
Binary file not shown.
Binary file removed chrome-extension-build/images/alerticon38.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon128 - Copy.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon128.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon16 - Copy.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon16.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon32 - Copy.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon32.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon48 - Copy.png
Binary file not shown.
Binary file removed chrome-extension-build/images/icon48.png
Binary file not shown.
1 change: 0 additions & 1 deletion chrome-extension-build/index.html

This file was deleted.

30 changes: 0 additions & 30 deletions chrome-extension-build/manifest.json

This file was deleted.

26 changes: 0 additions & 26 deletions chrome-extension-build/src/alert.html

This file was deleted.

2 changes: 0 additions & 2 deletions chrome-extension-build/src/background.html

This file was deleted.

Loading

0 comments on commit b61d2c1

Please sign in to comment.