From 025e6088d353130b1255fc83bacabae465245998 Mon Sep 17 00:00:00 2001 From: kilianpaquier Date: Sun, 27 Oct 2024 20:10:39 +0000 Subject: [PATCH] ci(layout): use latest craft generation Signed-off-by: kilianpaquier --- .github/actions/version/action.yml | 2 +- .github/workflows/build.yml | 40 ------------------------ .releaserc.yml | 49 +++++++++++++++--------------- 3 files changed, 26 insertions(+), 65 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/actions/version/action.yml b/.github/actions/version/action.yml index 2e865f9..ff32310 100644 --- a/.github/actions/version/action.yml +++ b/.github/actions/version/action.yml @@ -15,7 +15,7 @@ inputs: - "release" to get the next version number and create pull requests, tags and releases required: true token: - description: Github access token + description: GitHub access token required: true outputs: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index fa5e0e9..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,40 +0,0 @@ -# Code generated by craft; DO NOT EDIT. - -name: Go Build -run-name: Go Build - -on: - workflow_call: - inputs: - version: - description: Build version to use in build metadata - required: true - type: string - -jobs: - - build: - name: Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - check-latest: true - go-version-file: go.mod - token: ${{ secrets.GITHUB_TOKEN }} - - uses: goreleaser/goreleaser-action@v6 - with: - args: release --clean --config .goreleaser.yml --skip=validate --skip=announce --skip=publish --snapshot - env: - VERSION: ${{ inputs.version }} - - uses: actions/upload-artifact@v4 - with: - name: build - # order is important to filter unwanted globs after the filter or desired globs - path: | - dist/* - !dist/*.json - !dist/*.yaml - !dist/*/ - retention-days: 1 \ No newline at end of file diff --git a/.releaserc.yml b/.releaserc.yml index 55f9b1d..b192da5 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -23,18 +23,18 @@ plugins: - preset: conventionalcommits presetConfig: types: - - { type: feat, section: Features } - - { type: fix, section: Bug Fixes } - - { type: revert, section: Reverts } - - { type: perf, section: Performance Improvements } - - { type: docs, section: Documentation } - - { type: chore, section: Chores } - - { type: refactor, section: Code Refactoring } + - { type: feat, section: "πŸš€ Features" } + - { type: fix, section: "πŸ› Bug Fixes" } + - { type: revert, section: "βͺ Reverts" } + - { type: perf, section: "πŸ’ͺ Performance Improvements" } + - { type: docs, section: "πŸ“š Documentation" } + - { type: chore, section: "βš™οΈ Chores" } + - { type: refactor, section: "🚜 Code Refactoring" } - - { type: build, section: Build System, hidden: true } - - { type: ci, section: Continuous Integration, hidden: true } - - { type: style, section: Styles, hidden: true } - - { type: test, section: Tests, hidden: true } + - { type: build, section: "πŸ—οΈ Build System", hidden: true } + - { type: ci, section: "♾️ Continuous Integration", hidden: true } + - { type: style, section: "Styles", hidden: true } + - { type: test, section: "Tests", hidden: true } releaseRules: - { breaking: true, release: major } - { revert: true, release: patch } @@ -56,18 +56,18 @@ plugins: - preset: conventionalcommits presetConfig: types: - - { type: feat, section: Features } - - { type: fix, section: Bug Fixes } - - { type: revert, section: Reverts } - - { type: perf, section: Performance Improvements } - - { type: docs, section: Documentation } - - { type: chore, section: Chores } - - { type: refactor, section: Code Refactoring } + - { type: feat, section: "πŸš€ Features" } + - { type: fix, section: "πŸ› Bug Fixes" } + - { type: revert, section: "βͺ Reverts" } + - { type: perf, section: "πŸ’ͺ Performance Improvements" } + - { type: docs, section: "πŸ“š Documentation" } + - { type: chore, section: "βš™οΈ Chores" } + - { type: refactor, section: "🚜 Code Refactoring" } - - { type: build, section: Build System, hidden: true } - - { type: ci, section: Continuous Integration, hidden: true } - - { type: style, section: Styles, hidden: true } - - { type: test, section: Tests, hidden: true } + - { type: build, section: "πŸ—οΈ Build System", hidden: true } + - { type: ci, section: "♾️ Continuous Integration", hidden: true } + - { type: style, section: "Styles", hidden: true } + - { type: test, section: "Tests", hidden: true } parserOpts: noteKeywords: - BREAKING CHANGE @@ -82,9 +82,10 @@ plugins: message: "chore(release): v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" - - "@semantic-release/github" - draftRelease: false + failComment: ⚠️ Expected release for branch '${branch.name}' has failed due to the following errors:\n- ${errors.map(err => err.message).join('\\n- ')} + failCommentCondition: false successComment: πŸŽ‰ This issue has been resolved in version v${nextRelease.version} πŸŽ‰ - failComment: false - failTitle: false + successCommentCondition: true assets: - label: CHANGELOG.md path: CHANGELOG.md