Skip to content

Commit 5c57668

Browse files
authored
Merge pull request #1 from ar-io/permaweb-deploy
feat: add deploy:arweave script and action
2 parents 4b3a09f + e182bcd commit 5c57668

File tree

3 files changed

+1572
-9
lines changed

3 files changed

+1572
-9
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy to Arweave
2+
3+
env:
4+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
5+
NEXT_PUBLIC_INTERCOM_ID: re9q5yti
6+
NEXT_PUBLIC_PARA_API_KEY_PROD: ${{ github.ref == 'refs/heads/main' && secrets.NEXT_PUBLIC_PARA_API_KEY_PROD || '' }}
7+
NEXT_PUBLIC_DRPC_KEY: AnmpasF2C0JBqeAEzxVO8aTteiMlrW4R75hpDonbV6cR
8+
9+
on:
10+
push:
11+
branches:
12+
- main
13+
jobs:
14+
deploy:
15+
if: ${{ always() }}
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
deployments: write
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Install Misc. Deps
25+
run: sudo apt-get install -y libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
26+
27+
- name: Install corepack
28+
run: npm i -g corepack
29+
30+
- name: Install pnpm
31+
run: npm i -g --force corepack && corepack enable pnpm
32+
33+
- name: Install Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
cache: 'pnpm'
38+
39+
- run: pnpm install --frozen-lockfile
40+
41+
- name: Comparison of locales for missing keys
42+
run: pnpm compare-locales
43+
44+
- name: Publish to Arweave
45+
# deploy:arweave calls buildandexport
46+
run: pnpm deploy:arweave
47+
env:
48+
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
49+
ARNS_NAME: ${{ secrets.ARNS_NAME }}

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"subgraph:update": "ens-test-env subgraph --var NEXT_PUBLIC_DEPLOYMENT_ADDRESSES",
4848
"knip": "knip",
4949
"knip:fix": "knip --fix --allow-remove-files",
50-
"hh": "NODE_OPTIONS='--experimental-loader ts-node/esm/transpile-only' hardhat"
50+
"hh": "NODE_OPTIONS='--experimental-loader ts-node/esm/transpile-only' hardhat",
51+
"deploy:arweave": "pnpm buildandexport && permaweb-deploy -d out --arns-name $ARNS_NAME"
5152
},
5253
"dependencies": {
5354
"@ensdomains/address-encoder": "1.1.1",
@@ -56,6 +57,8 @@
5657
"@ensdomains/ens-test-env": "0.6.0",
5758
"@ensdomains/ensjs": "4.0.3-alpha.12",
5859
"@ensdomains/thorin": "1.0.0-beta.26",
60+
"@getpara/rainbowkit": "1.3.0",
61+
"@getpara/rainbowkit-wallet": "1.3.0",
5962
"@metamask/post-message-stream": "^6.1.2",
6063
"@metamask/providers": "^14.0.2",
6164
"@noble/hashes": "^1.3.2",
@@ -66,8 +69,6 @@
6669
"@tanstack/react-query": "5.22.2",
6770
"@tanstack/react-query-devtools": "^5.59.0",
6871
"@tanstack/react-query-persist-client": "5.22.2",
69-
"@getpara/rainbowkit": "1.3.0",
70-
"@getpara/rainbowkit-wallet": "1.3.0",
7172
"@wagmi/core": "2.13.3",
7273
"calendar-link": "^2.8.0",
7374
"dequal": "2.0.3",
@@ -163,6 +164,7 @@
163164
"next-dev-https": "^0.1.2",
164165
"next-router-mock": "^0.9.10",
165166
"pako": "^2.1.0",
167+
"permaweb-deploy": "^2.0.1",
166168
"postcss-styled-syntax": "^0.7.1",
167169
"prettier": "3.0.3",
168170
"sitemap": "^7.1.1",

0 commit comments

Comments
 (0)