From 95a2bbb62050976647c23da32e76c4a65a377acb Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Fri, 17 Jan 2025 10:17:48 +0700 Subject: [PATCH] semantic-release --- .github/ci/workflows/build.yml | 32 -------------------------------- .releaserc | 8 ++++++++ semantic-release.toml | 2 ++ 3 files changed, 10 insertions(+), 32 deletions(-) delete mode 100644 .github/ci/workflows/build.yml create mode 100644 .releaserc create mode 100644 semantic-release.toml diff --git a/.github/ci/workflows/build.yml b/.github/ci/workflows/build.yml deleted file mode 100644 index e583769..0000000 --- a/.github/ci/workflows/build.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Build - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - - steps: - - uses: actions/checkout@v3 - - name: Set up Rust - uses: dtolnay/rust-toolchain@stable - with: - components: clippy - - name: Clippy - run: cargo clippy -- -D warnings - - name: Build - run: cargo build --release - - name: Test - run: cargo test --verbose - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: stop-nagging-${{ runner.os }} - path: target/release/stop-nagging diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..8a411b3 --- /dev/null +++ b/.releaserc @@ -0,0 +1,8 @@ +{ + "branches": ["main"], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/github" + ] +} \ No newline at end of file diff --git a/semantic-release.toml b/semantic-release.toml new file mode 100644 index 0000000..bfd5143 --- /dev/null +++ b/semantic-release.toml @@ -0,0 +1,2 @@ +[release] +auto_increment = "patch" # if no commits match, increment patch by default \ No newline at end of file