Skip to content

Commit

Permalink
Merge branch 'staging' into test_PR_preview
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMillz authored Nov 7, 2024
2 parents c5a1fc9 + 2a6651a commit ca8102d
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 6 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 }}
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

0 comments on commit ca8102d

Please sign in to comment.