Skip to content

Commit

Permalink
ci: add release please
Browse files Browse the repository at this point in the history
Signed-off-by: loongtao.zhang <[email protected]>
  • Loading branch information
cathaysia committed Feb 9, 2025
1 parent fccfc3b commit 19c0215
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ updates:
directory: "/"
schedule:
interval: "monthly"
labels:
- "no-changelog"

- package-ecosystem: "cargo"
directory: "/derive"
schedule:
interval: "monthly"
labels:
- "no-changelog"
1 change: 0 additions & 1 deletion .github/workflows/depbot_auto_meger.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# https://github.com/microsoft/vscode-isort/blob/main/.github/workflows/dep-bot-auto-merge.yml
name: Dependabot auto-merge
on: pull_request

Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# copy from https://github.com/ajeetdsouza/zoxide/blob/297499a4fe515d8242bd1fb68efee1da1d47217a/.github/workflows/release.yml
name: release

on:
push:
branches:
- master
tags: ['*']
workflow_dispatch:

env:
CARGO_INCREMENTAL: 0

Expand Down Expand Up @@ -34,8 +33,6 @@ jobs:
- os: ubuntu-latest
target: i686-unknown-linux-musl
deb: true
# - os: ubuntu-latest
# target: aarch64-linux-android
- os: macos-11
target: x86_64-apple-darwin
- os: macos-11
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/release_please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: release_please

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
release_please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GH_TOKEN }}
config-file: release-please-config.json
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.0.1"
}
10 changes: 10 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"include-v-in-tag": true,
"bump-patch-for-minor-pre-major": true,
"packages": {
".": {
"release-type": "rust"
}
}
}

0 comments on commit 19c0215

Please sign in to comment.