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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7da472..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 @@ -48,49 +44,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