From b2536e8359c6d07018bc3a3d6b6d4398702f16ff Mon Sep 17 00:00:00 2001 From: shamardy Date: Fri, 23 Aug 2024 23:04:22 +0300 Subject: [PATCH] rename release.yaml to kdf.yaml and make it run ci.yaml only --- .github/workflows/kdf.yaml | 24 +++++++++++++++++++ .github/workflows/release.yaml | 44 ---------------------------------- 2 files changed, 24 insertions(+), 44 deletions(-) create mode 100644 .github/workflows/kdf.yaml delete mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/kdf.yaml b/.github/workflows/kdf.yaml new file mode 100644 index 0000000..6ce0013 --- /dev/null +++ b/.github/workflows/kdf.yaml @@ -0,0 +1,24 @@ +name: "kdf" + +on: + push: + branches: ["kdf"] + paths-ignore: + - ".github/**" + - "docs/**" + - "README.md" + + workflow_dispatch: + +jobs: + run-tests: + uses: ./.github/workflows/ci.yaml + secrets: inherit + + release: + needs: [run-tests] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 5e62d25..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,44 +0,0 @@ -name: "release" - -on: - push: - branches: ["main"] - paths-ignore: - - ".github/**" - - "docs/**" - - "README.md" - - workflow_dispatch: - -jobs: - run-tests: - uses: ./.github/workflows/ci.yaml - secrets: inherit - - release: - needs: [run-tests] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: "Cocogitto release" - id: release - uses: cocogitto/cocogitto-action@v3 - with: - check: true - check-latest-tag-only: true - release: true - git-user: "github-actions" - git-user-email: "github-actions@github.com" - - - name: "Generate Changelog" - run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md - - - name: "Update Github release notes" - uses: softprops/action-gh-release@v1 - with: - body_path: GITHUB_CHANGELOG.md - tag_name: ${{ steps.release.outputs.version }} - token: ${{ secrets.RELEASE_PAT }}