生成一个登陆界、home页面、我的页面,要求用路由可以跳到每一个页面,底部导航栏,同时要保存用户登陆凭证,每次获取数据都要带上凭证 #133
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: autogen-vue-code | |
on: | |
issues: | |
types: [edited, labeled, opened] | |
jobs: | |
handle_issue: | |
runs-on: ubuntu-latest | |
name: Create | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: 1.38.3 | |
- name: Cache node_modules | |
id: cache-node-modules | |
uses: actions/cache@v4 | |
with: | |
path: | | |
vue-preview-ui/vendor | |
vue-preview-ui/node_modules | |
key: ${{ runner.os }}-nodeModule3-${{ hashFiles('package.json') }} | |
- name: Npm install | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
run: | | |
cd vue-preview-ui | |
npm i | |
deno cache --vendor --node-modules-dir ../prompts/vue-ui-gen.ts | |
- name: generate UI | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | |
RUN_NUMBER: ${{ github.run_number }} | |
ACTOR: ${{ github.actor }} | |
NO_COLOR: true | |
run: cd vue-preview-ui && deno run -A --vendor --node-modules-dir ../prompts/vue-ui-gen.ts | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
publish_dir: vue-preview-ui/dist | |
destination_dir: ${{ github.run_number }} | |
github_token: ${{ secrets.PERSONAL_TOKEN }} |