Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
dylandoamaral committed Aug 27, 2024
1 parent b4e7a59 commit 27a316e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 81 deletions.
18 changes: 18 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
changelog:
categories:
- title: Breaking Changes 🛠
labels:
- breaking change
- title: Exciting New Features 🎉
labels:
- enhancement
- title: Bug Fixes 🐛
labels:
- bug
- title: Maintenance 🧹
labels:
- chore
- documentation
- title: Other Changes
labels:
- "*"
41 changes: 7 additions & 34 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,13 @@ on:
jobs:
cd:
runs-on: ubuntu-latest
outputs:
release_body: ${{ steps.release.outputs.RELEASE_BODY }}
steps:
- name: Set the release version
shell: bash
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Create changes
shell: bash
run: touch CHANGES.md
- name: Generate a changelog
uses: orhun/git-cliff-action@v1
id: git-cliff
with:
config: cliff.toml
args: -vv --latest --strip header
- name: Create release note
env:
OUTPUT: CHANGES.md
- name: Set the release body
id: release
shell: bash
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
r=$(cat ${{ steps.git-cliff.outputs.changelog }})
r="${r//'%'/'%25'}" # Multiline escape sequences for %
r="${r//$'\n'/'%0A'}" # Multiline escape sequences for '\n'
r="${r//$'\r'/'%0D'}" # Multiline escape sequences for '\r'
echo "::set-output name=RELEASE_BODY::$r"
- name: Create the release
uses: softprops/action-gh-release@v1
with:
name: "Release v${{ env.RELEASE_VERSION }}"
body: ${{ steps.release.outputs.RELEASE_BODY }}
env:
GITHUB_REPOSITORY: dylandoamaral/trakt-integration
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes
47 changes: 0 additions & 47 deletions cliff.toml

This file was deleted.

0 comments on commit 27a316e

Please sign in to comment.