From c010505f193086e5a5abc4a99494a5f74cf994b4 Mon Sep 17 00:00:00 2001 From: Dave Tucker Date: Wed, 28 Feb 2024 11:57:54 +0000 Subject: [PATCH] ci: Remove old release workflows Signed-off-by: Dave Tucker --- .github/changelog-base.json | 41 -------------------------------- .github/prep-changelog-config.sh | 13 ---------- .github/workflows/release.yml | 34 -------------------------- 3 files changed, 88 deletions(-) delete mode 100644 .github/changelog-base.json delete mode 100755 .github/prep-changelog-config.sh delete mode 100644 .github/workflows/release.yml diff --git a/.github/changelog-base.json b/.github/changelog-base.json deleted file mode 100644 index 8d998dd9..00000000 --- a/.github/changelog-base.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "categories": [ - { - "title": "## ๐Ÿš€ Features", - "labels": ["feature"], - "exhaustive": true - }, - { - "title": "## ๐Ÿ› Fixes and ๐Ÿค Small Changes", - "labels": ["fix"], - "exhaustive": true - }, - { - "title": "## ๐Ÿงช Tests", - "labels": ["test"], - "exhaustive": true - }, - { - "title": "## ๐Ÿค Dependencies and ๐Ÿค– Generated Code", - "labels": ["dependencies"], - "exhaustive": true - }, - { - "title": "## ๐Ÿ“ƒ Documentation", - "labels": ["documentation"], - "exhaustive": true - } - ], - "ignore_labels": [ - "ignore" - ], - "tag_resolver": { - "filter": { - "pattern": "" - }, - "transformer": { - "pattern": "", - "target": "$1" - } - } -} diff --git a/.github/prep-changelog-config.sh b/.github/prep-changelog-config.sh deleted file mode 100755 index 35a6b863..00000000 --- a/.github/prep-changelog-config.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# Remove "refs/tags/" -tag="${GITHUB_REF##*/}" -# Extract crate name -crate=$(echo $tag | sed 's/-v[0-9].*//g') -# Semver portion follows after the ${crate}-v -tagPattern="${crate}-v(.+)" - -echo ::group::Configuring changelog generator -jq '.tag_resolver.filter.pattern="'$tagPattern'" | .tag_resolver.transformer.pattern="'$tagPattern'" | .categories[].labels += ["'$crate'"]' \ - .github/changelog-base.json | tee .github/changelog-config.json -echo ::endgroup:: \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 6cea2982..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: release -on: - push: - tags: - - '*' - -jobs: - release: - if: startsWith(github.ref, 'refs/tags/') - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Prep Config - run: .github/prep-changelog-config.sh - - - name: Build Changelog - id: github_release - uses: mikepenz/release-changelog-builder-action@v4 - with: - configuration: ".github/changelog-config.json" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Create Release - uses: actions/create-release@v1 - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - body: ${{ steps.github_release.outputs.changelog }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}