From e00f6dd3b8badc9b782bee296976c3e547b61f5d Mon Sep 17 00:00:00 2001 From: Andrew5194 Date: Tue, 28 Mar 2023 16:29:12 -0400 Subject: [PATCH 1/3] adding release action --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..e0126048 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,13 @@ +name: Main + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') \ No newline at end of file From 822c3aaaa42d9edc45ec91aaae323f552b8ed798 Mon Sep 17 00:00:00 2001 From: Andrew5194 Date: Tue, 28 Mar 2023 16:33:22 -0400 Subject: [PATCH 2/3] adding changelog builder --- .github/workflows/release.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0126048..210002e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,21 @@ -name: Main - -on: push +name: 'CI' +on: + push: + tags: + - '*' jobs: - build: + release: + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') \ No newline at end of file + - name: Build Changelog + id: github_release + uses: mikepenz/release-changelog-builder-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Release + uses: mikepenz/action-gh-release@v0.2.0-a03 #softprops/action-gh-release + with: + body: ${{steps.github_release.outputs.changelog}} \ No newline at end of file From 1f3dd4743ae3c74ccfa131ff2a1c491dfe9c422a Mon Sep 17 00:00:00 2001 From: Andrew Yang Date: Mon, 10 Apr 2023 05:12:54 -0400 Subject: [PATCH 3/3] adding release.yml --- .github/workflows/release.yml | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 210002e5..72b4c806 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,21 +1,30 @@ -name: 'CI' +name: Create Release with Changelog on: push: - tags: - - '*' - + branches: + - main jobs: - release: - if: startsWith(github.ref, 'refs/tags/') + create_release: + name: Create Release with Changelog runs-on: ubuntu-latest steps: - - name: Build Changelog - id: github_release - uses: mikepenz/release-changelog-builder-action@v3 + - uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '14.x' + - name: Install Dependencies + run: npm install + - name: Generate Changelog + id: changelog + run: npx conventional-changelog -p angular -i CHANGELOG.md -s -r 0 + - name: Create Release + uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Create Release - uses: mikepenz/action-gh-release@v0.2.0-a03 #softprops/action-gh-release with: - body: ${{steps.github_release.outputs.changelog}} \ No newline at end of file + tag_name: v${{ github.ref }} + release_name: Release ${{ github.ref }} + body: ${{ steps.changelog.outputs.nextChangelog }} + draft: false + prerelease: false