Skip to content

Commit e4a13d6

Browse files
committed
test deploy
1 parent cdf8285 commit e4a13d6

File tree

4 files changed

+87
-32
lines changed

4 files changed

+87
-32
lines changed

.github/workflows/deploy.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Build, Deploy Contracts & Publish to Vercel
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
env:
13+
PASSWORD: ${{ secrets.PASSWORD }}
14+
15+
jobs:
16+
build-and-deploy:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '22'
27+
28+
- name: Enable Corepack
29+
run: corepack enable
30+
31+
- name: Install dependencies
32+
run: yarn install --immutable
33+
34+
- name: Install Aztec CLI
35+
run: |
36+
curl -s https://install.aztec.network > tmp.sh
37+
bash tmp.sh <<< yes "yes"
38+
39+
- name: Update path
40+
run: echo "/home/runner/.aztec/bin" >> $GITHUB_PATH
41+
42+
- name: Set Aztec version
43+
run: |
44+
aztec-up ${{ env.VERSION }}
45+
docker pull aztecprotocol/aztec:${{ env.VERSION }}
46+
docker tag aztecprotocol/aztec:${{ env.VERSION }}
47+
aztecprotocol/aztec:latest
48+
49+
- name: Copy token contract dependencies
50+
run: yarn copy:dependencies
51+
52+
- name: Compile contracts
53+
run: yarn compile:contracts
54+
55+
- name: Build website
56+
run: yarn build
57+
58+
- name: Deploy contracts to devnet
59+
run: yarn deploy:devnet
60+
env:
61+
PASSWORD: ${{ secrets.PASSWORD }}
62+
63+
- name: Install Vercel CLI
64+
run: npm install --global vercel@latest
65+
66+
- name: Pull Vercel Environment Information
67+
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
68+
69+
- name: Deploy to Vercel
70+
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
71+
id: deploy
72+
73+
- name: Comment deployment URL on PR
74+
if: github.event_name == 'pull_request'
75+
uses: actions/github-script@v7
76+
with:
77+
script: |
78+
github.rest.issues.createComment({
79+
issue_number: context.issue.number,
80+
owner: context.repo.owner,
81+
repo: context.repo.repo,
82+
body: '🚀 Deployed to Vercel!\n\nContracts deployed to devnet and website published.'
83+
})

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ contracts/target
3535

3636
# Network configs (local is developer-specific, devnet should be committed)
3737
src/config/networks/local.json
38-
contracts/codegenCache.json
38+
contracts/codegenCache.json
39+
.vercel

README.md

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1 @@
1-
# Aztec Playground
2-
3-
Initial version of an "everything app" that can be used to test and benchmark Aztec.
4-
5-
- Embedded wallet with PXE in the browser and client proofs
6-
- Connect to local sandbox or any network (scoped data)
7-
- Lazy loading of most assets (think contract artifacts) and WASM
8-
- Bundled by vite, 1.6MB compressed
9-
- Drop any contract artifact, interpret its ABI, simulate and send
10-
- Stores artifacts, accounts and all that's required to pick up where you left off without having to redeploy everything (indexeddb)
11-
- Supports aliasing of addresses, senders, contracts, etc
12-
- Allows loading an artifact, provide the address and go (instead of having to deploy it)
13-
- Add senders/contact management
14-
- Authwits
15-
- Benchmarking window where simulation/proving stats are displayed
16-
17-
## To run
18-
19-
Dev:
20-
21-
```
22-
yarn dev
23-
```
24-
25-
Production:
26-
27-
```
28-
yarn build
29-
yarn preview
30-
```
1+
# GregoSwap

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@aztec/playground",
2+
"name": "gregoswap",
33
"packageManager": "yarn@4.5.2",
44
"private": true,
55
"version": "0.0.0",

0 commit comments

Comments
 (0)