Browse Source

👷 CI : update workflows

chenshuai2144 5 years atrás
parent
commit
ad6b44c87c
2 changed files with 12 additions and 8 deletions
  1. 7 5
      .github/workflows/GitHub_Pages_Deploy.yml
  2. 5 3
      .github/workflows/issue-reference.yml

+ 7 - 5
.github/workflows/GitHub_Pages_Deploy.yml

@@ -2,8 +2,10 @@ name: Deploy to GitHub Pages
 on: [push]
 jobs:
   Deploy:
-    uses: maxheld83/ghpages@v0.2.1
-    if: success() && github.event == 'push' && github.ref == 'master'
-    env:
-      BUILD_DIR: 'dist/'
-      GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
+    steps:
+      - name: Deploy to GitHub Pages
+        uses: maxheld83/ghpages@v0.2.1
+        if: success() && github.event == 'push' && github.ref == 'master'
+        env:
+          BUILD_DIR: 'dist/'
+          GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}

+ 5 - 3
.github/workflows/issue-reference.yml

@@ -4,6 +4,8 @@ on: [pull_request]
 jobs:
   reference:
     name: reference
-    uses: kentaro-m/add-an-issue-reference-action@v1.0.0
-    env:
-      GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
+    steps:
+      - name: Add an issue reference
+        uses: kentaro-m/add-an-issue-reference-action@v1.0.0
+        env:
+          GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}