Skip to content

Commit

Permalink
chore(ci): add release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocao committed Dec 12, 2024
1 parent 1f7eb9d commit a6e9c09
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml → .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Hardhat CI 🚀"
name: "⚡ Push"

on:
workflow_dispatch:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a6e9c09

Please sign in to comment.