Skip to content

Commit

Permalink
update ci - vercel prod deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
haochenx committed Aug 21, 2023
1 parent 5494542 commit e4f0611
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,24 @@ jobs:

# https://github.com/amondnet/vercel-action/issues/170 が解決したら最新のタグに更新
- uses: amondnet/vercel-action@1d26fa06fdab094080b48d33eea2031cee54724d
if: github.ref != 'refs/heads/main'
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
working-directory: ./
scope: "kxcinc"
github-comment: true
- uses: amondnet/vercel-action@1d26fa06fdab094080b48d33eea2031cee54724d
if: github.ref == 'refs/heads/main'
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
working-directory: ./
scope: "kxcinc"
vercel-args: '--prod'
github-comment: true

setup-ocaml-checked:
needs: build
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: vercel deploy

on:
# deploy on main pushed
push:
branches:
- main
# 一応動確のために手動で GitHub Actions を実行可能にする
# その際の引数として checkout 時の ref を渡している
# default 部分はリポジトリに設定されているデフォルトブランチを指定する
Expand All @@ -25,7 +29,8 @@ jobs:
ocaml-version:
- 4.13.1

if: github.repository == 'kxcinc/bindoj'
## disable this workflow for now
if: ${{ failure() && github.repository == 'kxcinc/bindoj' }}
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -66,6 +71,6 @@ jobs:
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
working-directory: ./
scope: "kxcteam"
scope: "kxcinc"
vercel-args: '--prod'
github-comment: false

0 comments on commit e4f0611

Please sign in to comment.