Skip to content

Commit

Permalink
ci: Added release-plz PRs to rive-rs.
Browse files Browse the repository at this point in the history
This is the first part in transitioning to automatic crate publishing for rive-rs. It adds the PR part of release-plz which creates PRs against the repo in order to add changelog and bump the version in Cargo.toml.

Diffs=
2a1564e44 ci: Added release-plz PRs to rive-rs. (#6154)

Co-authored-by: Dragoș Tiselice <[email protected]>
  • Loading branch information
dragostis and dragostis committed Oct 25, 2023
1 parent 101916c commit 5040985
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/[email protected]
Expand All @@ -20,7 +20,7 @@ jobs:
name: Build (clang)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/[email protected]
Expand All @@ -36,7 +36,7 @@ jobs:
name: Build (GCC)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/[email protected]
Expand All @@ -48,7 +48,7 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/[email protected]
Expand All @@ -64,7 +64,7 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/[email protected]
Expand All @@ -76,7 +76,7 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/[email protected]
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main

jobs:
release-plz:
name: Release
runs-on: ubuntu-latest
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: MarcoIeni/[email protected]
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6d9aa017961638f7576a2ea52a8928c813e28dbb
2a1564e445b48026d8f8a564007e382db3a8592d
1 change: 1 addition & 0 deletions examples/viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "viewer"
version = "0.1.0"
edition = "2021"
publish = false

[dependencies]
pollster = "0.3.0"
Expand Down

0 comments on commit 5040985

Please sign in to comment.