File tree Expand file tree Collapse file tree 2 files changed +80
-0
lines changed
Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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'
You can’t perform that action at this time.
0 commit comments