소스 검색

👷 CI : update workflows

chenshuai2144 6 년 전
부모
커밋
78bae0ed7f
4개의 변경된 파일10개의 추가작업 그리고 18개의 파일을 삭제
  1. 0 7
      .github/GitHub_Pages_Deploy.workflow
  2. 0 11
      .github/issue-reference.workflow
  3. 6 0
      .github/workflows/GitHub_Pages_Deploy.yml
  4. 4 0
      .github/workflows/issue-reference.yml

+ 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 }}