From 6a24ca5ecf38ce94a6a86b1d33e1b9eaa8c565d8 Mon Sep 17 00:00:00 2001 From: sreedevk Date: Sat, 19 Jul 2025 12:01:05 +0000 Subject: [PATCH] updated github release pipeline --- .github/workflows/release.yml | 32 +++++++++++++------------------- README.md | 1 + 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 725478d..1ffe5e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Deduplicator Build & Release +name: Deduplicator Build & Release CI Pipeline on: push: @@ -66,7 +66,7 @@ jobs: tar -C release -czf ${{ matrix.artifact_name }}.tar.gz $BINARY_NAME - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.artifact_name }}-binary path: ${{ matrix.artifact_name }}.tar.gz @@ -75,28 +75,22 @@ jobs: needs: build runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Download all artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts - name: Create GitHub Release id: create_release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ github.ref_name }} + name: Release ${{ github.ref_name }} + body: "Automated release for version ${{ github.ref_name }}" + files: | + artifacts/*/*.tar.gz env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref_name }} - draft: false - prerelease: false - - - name: Upload Release Assets - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: artifacts/${{ matrix.artifact_name }}-binary/${{ matrix.artifact_name }}.tar.gz - asset_name: ${{ matrix.artifact_name }}.tar.gz - asset_content_type: application/gzip diff --git a/README.md b/README.md index 45553ec..edb8e32 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,7 @@ dust 'bench_artifacts' - [x] updated dependencies - [x] fix: full file hash collision between a file full of null bytes ("\0") and an empty file. This is a known trade off in gxhash. - [x] appending the file size at the end of content before hashing. +- [x] created an automated release pipeline ## v0.3.0 - [x] parallelization