Skip to content

Commit

Permalink
feat(nuxt3): deploy server online
Browse files Browse the repository at this point in the history
  • Loading branch information
LarchLiu committed May 30, 2023
1 parent 053ed12 commit 0378328
Show file tree
Hide file tree
Showing 11 changed files with 5,290 additions and 223 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: deploy server
on:
repository_dispatch:
types: [deploy]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm

- name: Install
run: pnpm install

- name: overwrite config json file
if: ${{ github.event.action == 'deploy' }}
uses: DamianReeves/write-file-action@master
with:
path: server/nuxt3/starnexus.config.json
contents: ${{ github.event.client_payload.outConfig }}
write-mode: overwrite

- name: deploy server
run: ${{ github.event.client_payload.build }}
working-directory: server/nuxt3
env:
CLOUDFLARE_API_TOKEN: ${{ github.event.client_payload.token }}
NETLIFY_AUTH_TOKEN: ${{ github.event.client_payload.token }}
NETLIFY_SITE_ID: ${{ github.event.client_payload.siteid }}
Loading

1 comment on commit 0378328

@vercel
Copy link

@vercel vercel bot commented on 0378328 May 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

star-nexus – ./

star-nexus-larchliu.vercel.app
star-nexus.vercel.app
star-nexus-git-main-larchliu.vercel.app

Please sign in to comment.