From 30d3fdad7c002275b037d342e59e65b4c016dbd4 Mon Sep 17 00:00:00 2001 From: Atsuya Watanabe Date: Sat, 5 Oct 2024 21:29:12 +0900 Subject: [PATCH 1/3] feat: workflow_dispatch --- .github/workflows/gh-pages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index fc098db3..efca78f2 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -5,6 +5,7 @@ on: branches: - main # Set a branch to deploy pull_request: + workflow_dispatch: jobs: deploy: From 00d502fc8e35613fbbc5bfffd20c06c4c2d57ea6 Mon Sep 17 00:00:00 2001 From: Atsuya Watanabe Date: Sat, 5 Oct 2024 21:46:13 +0900 Subject: [PATCH 2/3] perf: Set concurrency for workflow --- .github/workflows/gh-pages.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index efca78f2..c12484f6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,4 +1,4 @@ -name: github pages +name: GitHub Pages on: push: @@ -10,6 +10,9 @@ on: jobs: deploy: runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true steps: - uses: actions/checkout@v3 with: From e231dff9d2f18d9234c7a7d3dddba72caa2d4273 Mon Sep 17 00:00:00 2001 From: Atsuya Watanabe Date: Sat, 5 Oct 2024 21:52:48 +0900 Subject: [PATCH 3/3] chore: actions/checkout@v4 --- .github/workflows/gh-pages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c12484f6..b26cd72a 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -9,12 +9,12 @@ on: jobs: deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod