From e00143ddf99eff9e33c82a742046e27d35118829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Thu, 2 Feb 2023 16:54:06 +0800 Subject: [PATCH] build on release file --- .github/workflows/release.yml | 18 +++++++++++------- docs/{CHANGELOG.md => RELEASE.md} | 0 2 files changed, 11 insertions(+), 7 deletions(-) rename docs/{CHANGELOG.md => RELEASE.md} (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3758fe4c..d9210b98 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,31 +2,35 @@ name: TDP Cloud Builder on: push: - tags: - - 'v*.*.*' + paths: + - "docs/RELEASE.md" jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - name: Setup go + uses: actions/setup-go@v3 with: go-version: 1.18 - - uses: actions/setup-node@v3 + - name: Setup node + uses: actions/setup-node@v3 with: node-version: 16 - name: Run release script run: sh build.gh - - uses: softprops/action-gh-release@v1 + - name: Create github release + uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - body_path: docs/CHANGELOG.md + body_path: docs/RELEASE.md draft: false prerelease: false files: | diff --git a/docs/CHANGELOG.md b/docs/RELEASE.md similarity index 100% rename from docs/CHANGELOG.md rename to docs/RELEASE.md