From 4427a7ea3d4518e210384dc21ba7cc0ed8df24d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Sat, 18 Nov 2023 14:29:23 -0500 Subject: [PATCH 1/2] Update ci.yml --- .github/workflows/ci.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db962e3..4b5947c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,6 @@ permissions: contents: read pull-requests: read - jobs: release: if: github.event_name == 'pull_request' @@ -52,12 +51,10 @@ jobs: env: CHANGELOG: ${{ steps.without_checkout.outputs.changelog }} run: echo "CHANGELOG" - - name: "Minimal Configuration" - id: minimal_release - uses: ./ + - name: Create Release + uses: mikepenz/action-gh-release@v1 + with: + body: ${{steps.github_release.outputs.changelog}} + prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-b') || contains(github.ref, '-a') }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Echo Minimal Configuration Changelog - env: - CHANGELOG: ${{ steps.minimal_release.outputs.changelog }} - run: echo "$CHANGELOG" From b514ddb53b670ddcc0653f9647fdd0eaf2fcc2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Sat, 18 Nov 2023 15:46:31 -0500 Subject: [PATCH 2/2] Update publish.yml --- .github/workflows/ci.yml | 60 ----------------------------------- .github/workflows/publish.yml | 5 ++- 2 files changed, 2 insertions(+), 63 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 4b5947c..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: 'CI' -on: - push: - tags: - - '*' - pull_request: - -permissions: - contents: read - pull-requests: read - -jobs: - release: - if: github.event_name == 'pull_request' - runs-on: ubuntu-latest - steps: - - name: Build Changelog - id: without_checkout - uses: mikepenz/release-changelog-builder-action@v3 - with: - toTag: "v0.5.6" - configurationJson: | - { - "template": "#{{CHANGELOG}}\n\n
\nUncategorized\n\n#{{UNCATEGORIZED}}\n
", - "categories": [ - { - "title": "## ๐Ÿš€ Features", - "labels": ["feature"] - }, - { - "title": "## ๐Ÿ› Fixes", - "labels": ["fix"] - }, - { - "title": "## ๐Ÿงช Tests", - "labels": ["test"] - }, - { - "title": "## ๐Ÿ’ฌ Other", - "labels": ["other"] - }, - { - "title": "## ๐Ÿ“ฆ Dependencies", - "labels": ["dependencies"] - } - ] - } - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}' - - name: Echo Configuration without Checkout Changelog - env: - CHANGELOG: ${{ steps.without_checkout.outputs.changelog }} - run: echo "CHANGELOG" - - name: Create Release - uses: mikepenz/action-gh-release@v1 - with: - body: ${{steps.github_release.outputs.changelog}} - prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-b') || contains(github.ref, '-a') }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 41ef3e8..e0daf09 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,5 +1,3 @@ -name: Create release - on: workflow_dispatch: inputs: @@ -14,6 +12,7 @@ on: options: - false - true +name: Create release v${{ github.event.inputs.version }} env: OSSH_USERNAME: ${{ secrets.OSSH_USERNAME }} @@ -51,7 +50,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: commitish: ${{ github.ref }} - tag_name: ${{ github.event.inputs.version }} + tag_name: release/${{ github.event.inputs.version }} release_name: v${{ github.event.inputs.version }} body: "Will be filled later" draft: false