diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7ee8cf8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + # Check for updates every Monday + schedule: + interval: "weekly" diff --git a/.github/workflows/get-latest.yml b/.github/workflows/get-latest.yml index 5b13ae1..a9b7f7e 100644 --- a/.github/workflows/get-latest.yml +++ b/.github/workflows/get-latest.yml @@ -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 }} diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml new file mode 100644 index 0000000..9635d7b --- /dev/null +++ b/.github/workflows/release-plz.yml @@ -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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index e9d4233..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -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 diff --git a/release-plz.toml b/release-plz.toml new file mode 100644 index 0000000..5b42dd2 --- /dev/null +++ b/release-plz.toml @@ -0,0 +1,2 @@ +[workspace] +repo_url = "https://github.com/tauri-apps/cef-rs"