From 04fa5575cbca5276e3e60177aff40e04dfbb90ed Mon Sep 17 00:00:00 2001 From: Bharadwajshivam28 Date: Fri, 20 Sep 2024 06:52:11 +0530 Subject: [PATCH 1/3] moved chglog file --- {.github/workflows/.chglog => .chglog}/CHANGELOG.tpl.md | 0 {.github/workflows/.chglog => .chglog}/config.yml | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename {.github/workflows/.chglog => .chglog}/CHANGELOG.tpl.md (100%) rename {.github/workflows/.chglog => .chglog}/config.yml (100%) diff --git a/.github/workflows/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md similarity index 100% rename from .github/workflows/.chglog/CHANGELOG.tpl.md rename to .chglog/CHANGELOG.tpl.md diff --git a/.github/workflows/.chglog/config.yml b/.chglog/config.yml similarity index 100% rename from .github/workflows/.chglog/config.yml rename to .chglog/config.yml From 2160eb1447d2557e271422ded4734cd72993bc0a Mon Sep 17 00:00:00 2001 From: Bharadwajshivam28 Date: Fri, 20 Sep 2024 06:55:59 +0530 Subject: [PATCH 2/3] fix:removed workflow lines --- .github/workflows/release.yml | 47 +---------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7da472..14f73a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,49 +48,4 @@ jobs: name: artifacts-${{ matrix.GOOS }}-${{ matrix.GOARCH }} path: dist retention-days: 1 - if-no-files-found: error - - release: - runs-on: ubuntu-latest - needs: - - build - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Download Artifacts - uses: actions/download-artifact@v4 - with: - path: artifacts - pattern: artifacts-* - merge-multiple: true - - - name: Install ChangeLog generator - run: | - wget https://github.com/git-chglog/git-chglog/releases/download/v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz - tar xzf git-chglog*.tar.gz git-chglog - - name: "Get Last Release" - id: last_release - uses: InsonusK/get-latest-release@v1.1.0 - with: - myToken: ${{ github.token }} - exclude_types: "draft|prerelease" - - - name: Generate Changelog for ${{ github.ref_name }} - id: generate-changelog - run: PATH="${PATH}:." make CHANGELOG.md - - - name: Generate checksum - run: | - cd artifacts - for file in *; do shasum -a 256 "$file" >> checksum.txt; done - - - name: Create Release - id: create_release - uses: softprops/action-gh-release@v2 - with: - files: | - ./artifacts/* - body_path: ./CHANGELOG.md - draft: false \ No newline at end of file + if-no-files-found: error \ No newline at end of file From 362cac0691fc292c25d8cecccab893cea514d795 Mon Sep 17 00:00:00 2001 From: Bharadwajshivam28 Date: Fri, 20 Sep 2024 06:57:31 +0530 Subject: [PATCH 3/3] feat: changed release to run on release --- .github/workflows/release.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14f73a0..2814087 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,7 @@ name: Release -# on: -# push: -# tags: [ v* ] on: push: - branches: - - "**" + tags: [ v* ] env: GO_VERSION: 1.23