Skip to content

Commit

Permalink
ci: modify process
Browse files Browse the repository at this point in the history
  • Loading branch information
Rewrite0 committed May 31, 2024
1 parent 2e01df0 commit 7913061
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

- name: build test
run: |
cd webui && pnpm vue-tsc --noEmit
cd webui && pnpm test:build
version-info:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:

build-webui:
runs-on: ubuntu-latest
needs: [ test, version-info ]
needs: [test, webui-test, version-info]
if: ${{ needs.version-info.outputs.release == 1 || needs.version-info.outputs.dev == 1 }}
steps:
- name: Checkout
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:

build-docker:
runs-on: ubuntu-latest
needs: [ build-webui, version-info ]
needs: [build-webui, version-info]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -264,7 +264,7 @@ jobs:

release:
runs-on: ubuntu-latest
needs: [ build-docker, version-info ]
needs: [build-docker, version-info]
if: ${{ needs.version-info.outputs.release == 1 }}
outputs:
url: ${{ steps.release.outputs.url }}
Expand Down Expand Up @@ -297,8 +297,7 @@ jobs:
- name: Copy requirements.txt
working-directory: ./backend
run:
cp requirements.txt src/requirements.txt
run: cp requirements.txt src/requirements.txt

- name: Zip app
run: |
Expand Down Expand Up @@ -330,10 +329,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}


telegram:
runs-on: ubuntu-latest
needs: [ release ]
needs: [release]
steps:
- name: send telegram message on push
uses: appleboy/telegram-action@master
Expand Down
3 changes: 2 additions & 1 deletion webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"private": true,
"scripts": {
"prepare": "cd .. && husky install ./webui/.husky",
"build": "vue-tsc --noEmit && vite build",
"test:build": "vue-tsc --noEmit",
"build": "vite build",
"dev": "vite",
"format": "prettier --write .",
"format:check": "prettier --check .",
Expand Down

0 comments on commit 7913061

Please sign in to comment.