Skip to content

Commit ec0cd1b

Browse files
author
dpshade
committed
Restore GitHub Actions workflows for Arweave and Vercel deployment
1 parent 75c2772 commit ec0cd1b

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy to Permaweb
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v2
20+
with:
21+
bun-version: latest
22+
23+
- name: Install dependencies
24+
run: bun install --frozen-lockfile
25+
26+
- name: Build project
27+
run: bun run build
28+
env:
29+
BUN_ENV: production
30+
31+
- name: Create .nojekyll file
32+
run: touch dist/.nojekyll
33+
34+
- name: Deploy to Permaweb
35+
run: |
36+
npx permaweb-deploy@2.5.1 \
37+
--arns-name=argo \
38+
--deploy-folder=dist \
39+
--ario-process=qNvAoz0TgcH7DMg8BCVn8jF32QH5L6T29VjHxhHqqGE \
40+
--undername=@
41+
env:
42+
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy to Vercel
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v2
20+
with:
21+
bun-version: latest
22+
23+
- name: Install dependencies
24+
run: bun install --frozen-lockfile
25+
26+
- name: Build project
27+
run: bun run build
28+
env:
29+
BUN_ENV: production
30+
BUILD_TARGET: vercel
31+
32+
- name: Deploy to Vercel
33+
uses: amondnet/vercel-action@v25
34+
with:
35+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
36+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
37+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
38+
vercel-args: '--prod'

0 commit comments

Comments
 (0)