Browse Source

👷 CI : update workflows

pull/6007/head
chenshuai2144 6 years ago
parent
commit
78bae0ed7f
  1. 7
      .github/GitHub_Pages_Deploy.workflow
  2. 11
      .github/issue-reference.workflow
  3. 6
      .github/workflows/GitHub_Pages_Deploy.yml
  4. 4
      .github/workflows/issue-reference.yml

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"]
}

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
.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
.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 }}
Loading…
Cancel
Save