From 5a0cc4b8d2f725233e52ecb02a876572b9e8f2ba Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Fri, 31 May 2024 11:02:10 +0200 Subject: [PATCH] test workflow --- .github/release.yml | 20 -------------------- .github/workflows/release.yml | 20 ++++++++++++++++++-- 2 files changed, 18 insertions(+), 22 deletions(-) delete mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml deleted file mode 100644 index bced958..0000000 --- a/.github/release.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes - -changelog: - exclude: - labels: - - skip-changelog - - categories: - - title: Breaking Changes 🛠 - labels: - - backwards-incompatible - - - title: New Features 🎉 - labels: - - enhancement - - - title: Other Changes - labels: - - "*" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c2ced0..66348a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,5 +11,21 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - name: Create GitHub release - uses: voxpupuli/gha-create-a-github-release@main + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Checkout profile + uses: actions/checkout@v4 + if: ${{ hashFiles('.github/release.yml') != '' }} + with: + repository: "${{ github.repository_owner }}/.github" + sparse-checkout: .github/release.yml + sparse-checkout-cone-mode: false + + - name: Create Release Page + shell: bash + env: + GH_TOKEN: ${{ github.token }} + run: gh release create ${{ github.ref_name }} --generate-notes