Skip to content

Commit

Permalink
🐎 ci: 模仿 尝试增加工作流;
Browse files Browse the repository at this point in the history
  • Loading branch information
ruan-cat committed Mar 24, 2024
1 parent f7c43bf commit 608096d
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/monorepo-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 参考资料
# https://github.com/marketplace/actions/vercel-action
# https://vercel.com/guides/how-can-i-use-github-actions-with-vercel

name: monorepo-1
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches-ignore:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: amondnet/[email protected]
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
working-directory: ./packages/monorepo-1
alias-domains: monorepo-1.ruancat6312.top
24 changes: 24 additions & 0 deletions .github/workflows/monorepo-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 参考资料
# https://github.com/marketplace/actions/vercel-action
# https://vercel.com/guides/how-can-i-use-github-actions-with-vercel

name: monorepo-2
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches-ignore:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: amondnet/[email protected]
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
working-directory: ./packages/monorepo-2
alias-domains: monorepo-2.ruancat6312.top
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

.vercel
2 changes: 2 additions & 0 deletions packages/monorepo-1/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ node_modules/
src/.vuepress/.cache/
src/.vuepress/.temp/
src/.vuepress/dist/

.vercel

0 comments on commit 608096d

Please sign in to comment.