chore: release-plz workflow

This commit is contained in:
Bill Avery
2025-07-12 15:50:26 -07:00
parent aacabf2ce5
commit cbc2283392
5 changed files with 69 additions and 16 deletions

7
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
# Check for updates every Monday
schedule:
interval: "weekly"

View File

@@ -6,6 +6,7 @@ on:
jobs:
get-latest:
if: ${{ github.repository_owner == 'tauri-apps' }}
runs-on: ubuntu-latest
outputs:
updated: ${{ steps.push-changes.outputs.updated }}

59
.github/workflows/release-plz.yml vendored Normal file
View File

@@ -0,0 +1,59 @@
name: Release
permissions:
pull-requests: write
contents: write
on:
push:
branches:
- dev
jobs:
# Release unpublished packages.
release-plz-release:
name: Release-plz release
if: ${{ github.repository_owner == 'tauri-apps' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/action@v0.5
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.ORG_CRATES_IO_TOKEN }}
# Create a PR with the new versions and changelog, preparing the next release.
release-plz-pr:
name: Release-plz PR
if: ${{ github.repository_owner == 'tauri-apps' }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/action@v0.5
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.ORG_CRATES_IO_TOKEN }}

View File

@@ -1,16 +0,0 @@
# cef-rs changelog
- Update crate documentation.
- Add `run_message_loop` adn `shutdown`
## 117.2.6
- Add more manifest to Cargo.toml
## 117.2.5
- Update to cef v117.2.5
## 0.1.2
- feat: Send/Sync trait bound for binding traits

2
release-plz.toml Normal file
View File

@@ -0,0 +1,2 @@
[workspace]
repo_url = "https://github.com/tauri-apps/cef-rs"