Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
00INDEX committed May 3, 2023
2 parents 8916b1b + 646b77c commit b16bef4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ on:
push:
branches:
- main
tags:
- 'v*'

jobs:
build:
permissions: write-all
strategy:
matrix:
node-version: [18]
Expand Down Expand Up @@ -47,15 +46,15 @@ jobs:
property: version

- name: Zip the Build
run: zip -r chat-ui.zip ./collie-ui/dist/
run: zip -r dist.zip ./collie-ui/dist/

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: refs/heads/ui
tag_name: refs/heads/ui-v${{ steps.version.outputs.value }}
release_name: Release refs/heads/ui
body: UI version ${{ steps.version.outputs.value }}.
draft: false
Expand All @@ -67,6 +66,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./chat-ui.zip
asset_name: chat-ui.zip
asset_path: ./dist.zip
asset_name: dist.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ async def generate(dialogue: list):
return {"status": status, "response": response}

if __name__ == "__main__":
uvicorn.run(app="server:app", host=args.host, port=args.port, reload=True)
uvicorn.run(app="server:app", host=args.host, port=args.port, reload=True)

0 comments on commit b16bef4

Please sign in to comment.