1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-24 23:01:05 +03:00

ci: automate dependencies version bump on release

This commit is contained in:
Quentin Gliech
2024-02-02 23:54:41 +01:00
parent 9d96cdde1f
commit fe2344baca
2 changed files with 2 additions and 2 deletions

View File

@@ -46,6 +46,7 @@ jobs:
- name: Set the crates version - name: Set the crates version
run: | run: |
sed -i "s/^package.version = .*/package.version = \"${{ steps.next.outputs.version }}\"/" Cargo.toml sed -i "s/^package.version = .*/package.version = \"${{ steps.next.outputs.version }}\"/" Cargo.toml
sed -i "/path = \".\/crates\//s/version = \".*\"/version = \"=${{ steps.next.outputs.version }}\"/" Cargo.toml
- name: Run `cargo metadata` to make sure the lockfile is up to date - name: Run `cargo metadata` to make sure the lockfile is up to date
run: cargo metadata --format-version 1 run: cargo metadata --format-version 1
@@ -151,4 +152,4 @@ jobs:
ref: `heads/${branch}`, ref: `heads/${branch}`,
sha: commit, sha: commit,
}); });
console.log("Updated branch ref:", ref.data.url); console.log("Updated branch ref:", ref.data.url);

View File

@@ -27,7 +27,6 @@ broken_intra_doc_links = "deny"
[workspace.dependencies] [workspace.dependencies]
# Workspace crates # Workspace crates
# TODO: we need to automate the publishing of the workspace crates and version bumps
mas-axum-utils = { path = "./crates/axum-utils/", version = "=0.7.0" } mas-axum-utils = { path = "./crates/axum-utils/", version = "=0.7.0" }
mas-cli = { path = "./crates/cli/", version = "=0.7.0" } mas-cli = { path = "./crates/cli/", version = "=0.7.0" }
mas-config = { path = "./crates/config/", version = "=0.7.0" } mas-config = { path = "./crates/config/", version = "=0.7.0" }