From 26357a1deea2078ecf6b22dd4b0b89df49aa4952 Mon Sep 17 00:00:00 2001 From: tylt6688 Date: Fri, 26 Apr 2024 13:17:09 +0800 Subject: [PATCH] =?UTF-8?q?dev-FEAT(GitHubAction):=20=E5=A2=9E=E5=8A=A0Git?= =?UTF-8?q?HubAction=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 33 ++++++++++++++++++ src/App.vue | 25 +++++++++---- src/components/NotFound/index.vue | 36 +++++++++++++++++++ src/components/tinymce/tinymce.vue | 11 +++--- src/router/index.js | 56 ++++++++++-------------------- src/store/index.js | 9 ++--- src/store/modules/menus.js | 1 + src/utils/countdown/index.js | 31 +++++++++++++++++ src/utils/http/index.js | 14 ++++---- src/utils/message_timer/index.js | 33 ------------------ src/views/Login.vue | 10 +++--- vue.config.js | 4 +-- 12 files changed, 160 insertions(+), 103 deletions(-) create mode 100644 .github/workflows/deploy.yml create mode 100644 src/components/NotFound/index.vue create mode 100644 src/utils/countdown/index.js delete mode 100644 src/utils/message_timer/index.js diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..cd513bc --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: 监听 Push 打包部署 + +on: + push: + branches: [ main ] + workflow_dispatch: + +permissions: + contents: write + +jobs: + npm-build: + name: Npm Build and Deploy + runs-on: ubuntu-latest + + steps: + - name: 读取仓库内容 + uses: actions/checkout@v4 + + - name: 安装依赖 + run: | + npm install + + - name: 打包 + run: | + npm run build + + - name: 部署 + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: main + folder: dist + diff --git a/src/App.vue b/src/App.vue index 59b7fc3..eb0ea65 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ @@ -8,7 +8,12 @@ + + \ No newline at end of file diff --git a/src/components/tinymce/tinymce.vue b/src/components/tinymce/tinymce.vue index d048c7d..be880e9 100644 --- a/src/components/tinymce/tinymce.vue +++ b/src/components/tinymce/tinymce.vue @@ -1,13 +1,12 @@