From 25dca28b15e0be0294736d7c405681b57674ff4e Mon Sep 17 00:00:00 2001 From: Uiolee <22849383+uiolee@users.noreply.github.com> Date: Sat, 13 Jan 2024 00:28:47 +0800 Subject: [PATCH] ci: add name to workflows (#239) --- .github/workflows/ci.yml | 8 +++++++- .github/workflows/pages.yml | 6 ++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e7ecd26..0cdd4c9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,10 @@ -on: [push, pull_request] +name: CI + +on: + push: + branches: + - "master" + pull_request: jobs: linter: diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index e2a4928b..00112614 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,3 +1,5 @@ +name: Pages + on: push: branches: [master] @@ -10,11 +12,11 @@ jobs: - name: Use Node.js v16 uses: actions/setup-node@v1 with: - node-version: '16' + node-version: "16" - run: npm install - name: Create Pages run: npm run typedoc - uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs \ No newline at end of file + publish_dir: ./docs