Skip to content

Commit

Permalink
cd: integrate with build action
Browse files Browse the repository at this point in the history
  • Loading branch information
PleahMaCaka committed Oct 30, 2023
1 parent 1b63462 commit 8b27a49
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,35 @@ jobs:
run: pnpm install

- name: Build
run: pnpm build
run: pnpm build

deploy:
- name: Checkout
uses: actions/checkout@v3

- name: Connect deploy key
uses: cloudtype-github-actions/connect@v1
with:
token: ${{ secrets.CLOUDTYPE_TOKEN }}
ghtoken: ${{ secrets.GHP_TOKEN }}

- name: Deploy
uses: cloudtype-github-actions/deploy@v1
with:
token: ${{ secrets.CLOUDTYPE_TOKEN }}
project: pleahmacaka/ait
stage: main
yaml: |
name: front
app: node@18
options:
env:
- name: NODE_ENV
value: production
ports: "4173"
build: npm run build
start: npm run preview -- --host
context:
git:
url: git@github.com:${{ github.repository }}.git
ref: ${{ github.ref }}
37 changes: 0 additions & 37 deletions .github/workflows/deploy.yml

This file was deleted.

0 comments on commit 8b27a49

Please sign in to comment.