chenshuai2144 5 лет назад
Родитель
Сommit
78bae0ed7f

+ 0 - 7
.github/GitHub_Pages_Deploy.workflow

@@ -1,7 +0,0 @@
-action "Deploy to GitHub Pages" {
-  uses = "maxheld83/ghpages@v0.2.1"
-  env = {
-    BUILD_DIR = "dist/"
-  }
-  secrets = ["ACTION_TOKEN"]
-}

+ 0 - 11
.github/issue-reference.workflow

@@ -1,11 +0,0 @@
-workflow "Add an issue reference to a pull request" {
-  on = "pull_request"
-  resolves = "Add an issue reference"
-}
-
-action "Add an issue reference" {
-  uses = "kentaro-m/add-an-issue-reference-action@master"
-  secrets = ["ACTION_TOKEN"]
-  # branch name prefix
-  args = "{\"branch\":\"issue\"}"
-}

+ 6 - 0
.github/workflows/GitHub_Pages_Deploy.yml

@@ -0,0 +1,6 @@
+- 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 }}

+ 4 - 0
.github/workflows/issue-reference.yml

@@ -0,0 +1,4 @@
+- name: Add an issue reference
+  uses: kentaro-m/add-an-issue-reference-action@v1.0.0
+  env:
+    GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}