Parcourir la source

【维护,流程】更新部署工作流和版本号

新增独立部署工作流,更新发布工作流以包含检查阶段,并将版本号更新至 v0.2.4。
PJ568 il y a 10 mois
Parent
commit
3c52adb77b
3 fichiers modifiés avec 33 ajouts et 3 suppressions
  1. 30 0
      .github/workflows/deploy.yml
  2. 2 2
      .github/workflows/release.yml
  3. 1 1
      README.md

+ 30 - 0
.github/workflows/deploy.yml

@@ -0,0 +1,30 @@
+name: deploy
+
+on: [workflow_dispatch, workflow_call]
+
+jobs:
+  check:
+    uses: ./.github/workflows/check.yml
+  deploy:
+    runs-on: ubuntu-latest
+    name: Check
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
+
+      - name: Drop markdown.html
+        uses: PJ-568/[email protected]
+
+      - name: Setup Pages
+        uses: actions/configure-pages@v4
+
+      - name: Upload artifact
+        uses: actions/upload-pages-artifact@v3
+        with:
+          path: "./"
+
+      - name: Deploy to GitHub Pages
+        id: deployment
+        uses: actions/deploy-pages@v4

+ 2 - 2
.github/workflows/release.yml

@@ -1,4 +1,4 @@
-name: release and deploy
+name: check, release and deploy
 
 on:
   workflow_dispatch:
@@ -7,7 +7,7 @@ on:
       - master
 
 jobs:
-  test:
+  check:
     uses: ./.github/workflows/check.yml
   release:
     runs-on: ubuntu-latest

+ 1 - 1
README.md

@@ -1,4 +1,4 @@
-# PJ568 提交说明规范 `v0.2.3`
+# PJ568 提交说明规范 `v0.2.4`
 
 本规范旨在格式化提交说明,以在方便阅读理解的同时,保证其能被程序一致地解析。