Skip to content

Commit

Permalink
Merge pull request #7 from Utkarsh4517/feat/strucutre
Browse files Browse the repository at this point in the history
moved chglog file
  • Loading branch information
Bharadwajshivam28 authored Sep 20, 2024
2 parents 326f077 + 362cac0 commit 7971294
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 51 deletions.
File renamed without changes.
File renamed without changes.
53 changes: 2 additions & 51 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Release
# on:
# push:
# tags: [ v* ]
on:
push:
branches:
- "**"
tags: [ v* ]

env:
GO_VERSION: 1.23
Expand Down Expand Up @@ -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/[email protected]
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
if-no-files-found: error

0 comments on commit 7971294

Please sign in to comment.