From a6e9c097bae61b485d6c2a3f7c0e50ff15651bc5 Mon Sep 17 00:00:00 2001 From: Mario Cao Date: Thu, 12 Dec 2024 14:11:43 +0000 Subject: [PATCH] chore(ci): add release pipeline --- .github/workflows/{ci.yml => push.yml} | 2 +- .github/workflows/release.yml | 33 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) rename .github/workflows/{ci.yml => push.yml} (96%) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/push.yml similarity index 96% rename from .github/workflows/ci.yml rename to .github/workflows/push.yml index 3d93193..a747d40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/push.yml @@ -1,4 +1,4 @@ -name: "Hardhat CI 🚀" +name: "⚡ Push" on: workflow_dispatch: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..41f08b9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: "📦 Release" + +on: + push: + tags: + - 'v*' + +jobs: + create-release: + runs-on: ubuntu-latest + + steps: + - name: 🛎 Checkout code + uses: actions/checkout@v4 + + - name: 📝 Generate Changelog + id: changelog + uses: TriPSs/conventional-changelog-action@v3 + with: + output-file: false + skip-commit: true + skip-tag: true + skip-git-pull: true + git-push: false + + - name: 🚀 Create Release + uses: softprops/action-gh-release@v1 + with: + name: ${{ github.ref_name }} + tag_name: ${{ github.ref_name }} + body: ${{ steps.changelog.outputs.changelog }} + draft: true + prerelease: false