From 93e30419bc80827b4c3cf17528f5cc14b2057502 Mon Sep 17 00:00:00 2001 From: Jiseeeh Date: Sat, 22 Jun 2024 00:04:59 +0800 Subject: [PATCH] feat: add workflow release --- .github/workflows/release.yaml | 19 +++++++++++++++++++ .releaserc | 24 ++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/release.yaml create mode 100644 .releaserc diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..f72326d6 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,19 @@ +name: release +on: + workflow_dispatch: + +jobs: + main: + runs-on: ubuntu-latest + environment: + name: semver + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v4 + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.releaserc b/.releaserc new file mode 100644 index 00000000..5d786a6c --- /dev/null +++ b/.releaserc @@ -0,0 +1,24 @@ +{ + "branches": [ + "main" + ], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md" + } + ], + [ + "@semantic-release/git", + { + "assets": [ + "CHANGELOG.md" + ] + } + ], + "@semantic-release/github" + ] +} \ No newline at end of file