Skip to content

Commit

Permalink
Merge branch 'staging' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsayo authored Nov 8, 2024
2 parents 60c5028 + 6bdfa20 commit add44dd
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 12 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: GitHub Actions Vercel Preview Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
Deploy-Preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Ensure pnpm store directory exists
run: mkdir -p ~/.pnpm-store
- name: Cache Node Modules and pnpm Store
uses: actions/cache@v3
with:
path: |
~/.pnpm-store
node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install pnpm and Vercel CLI
run: |
npm install -g pnpm vercel@canary
- name: Pull Vercel Environment Information
run: vercel pull --yes --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 }}
22 changes: 17 additions & 5 deletions .github/workflows/main.yml → .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# This workflow runs the CI command defined in package.json
name: CI

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
push:
branches: [main]

branches:
- main
jobs:
ci:
name: CI
Expand Down Expand Up @@ -79,3 +79,15 @@ jobs:
# Need to shutdown Anvil so cache gets created
- name: 💤 Shutdown Anvil
run: pkill -2 anvil

# TODO @0xMillz for production: (https://vercel.com/guides/how-can-i-use-github-actions-with-vercel)

# - 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 }}
10 changes: 5 additions & 5 deletions apps/web/src/modules/dao/components/Activity/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { useChainStore } from 'src/stores/useChainStore'
import {
delegateBtn,
selectDelegateBtn,
submitProposalBtn,
createProposalBtn,
} from 'src/styles/Proposals.css'
import { sectionWrapperStyle } from 'src/styles/dao.css'
import { AddressType } from 'src/typings'
Expand Down Expand Up @@ -148,20 +148,20 @@ export const Activity: React.FC = () => {
) : null}
{!address ? (
<Button
className={submitProposalBtn}
className={createProposalBtn}
onClick={openConnectModal}
color={'tertiary'}
>
Submit {!isMobile ? 'proposal' : null}
Create {!isMobile ? 'proposal' : null}
</Button>
) : (
<Button
className={submitProposalBtn}
className={createProposalBtn}
onClick={address ? handleProposalCreation : openConnectModal}
disabled={isGovernanceDelayed ? true : address ? !hasThreshold : false}
color={'tertiary'}
>
Submit {!isMobile ? 'proposal' : null}
Create {!isMobile ? 'proposal' : null}
</Button>
)}
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/modules/dashboard/DaoProposals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const DaoProposals = ({
router.push(`/dao/${currentChainSlug}/${tokenAddress}/proposal/create`)
}
>
Submit Proposal
Create Proposal
</Button>
</Flex>
<Box>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/styles/Proposals.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const delegateBtn = style({
},
})

export const submitProposalBtn = style({
export const createProposalBtn = style({
fontSize: '1rem',
fontFamily: 'ptRoot!important',
borderRadius: '12px',
Expand Down

0 comments on commit add44dd

Please sign in to comment.