Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI job to publish on crates.io when a release is tagged #713

Merged
merged 2 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- master
tags:
- 'release-[0-9]+-[0-9]+-[0-9]+'
pull_request:

jobs:
Expand Down Expand Up @@ -429,3 +431,24 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
force_orphan: true

publish:
needs:
- format
- doc
- check-minimal
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Publish crates
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CRATES_TOKEN }}
args: --no-verify
dry-run: ${{ !(github.repository == 'Smithay/wayland-rs' && startsWith(github.ref, 'refs/tags/release-')) }}
ignore-unpublished-changes: ${{ !(github.repository == 'Smithay/wayland-rs' && startsWith(github.ref, 'refs/tags/release-')) }}
2 changes: 1 addition & 1 deletion wayland-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ readme = "README.md"
build = "build.rs"

[dependencies]
wayland-sys = { version = "0.31.0", path = "../wayland-sys", features = [] }
wayland-sys = { version = "0.31.1", path = "../wayland-sys", features = [] }
log = { version = "0.4", optional = true }
scoped-tls = "1.0"
downcast-rs = "1.2"
Expand Down
4 changes: 2 additions & 2 deletions wayland-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ description = "Bindings to the standard C implementation of the wayland protocol
readme = "README.md"

[dependencies]
wayland-backend = { version = "0.3.1", path = "../wayland-backend" }
wayland-scanner = { version = "0.31.0", path = "../wayland-scanner" }
wayland-backend = { version = "0.3.3", path = "../wayland-backend" }
wayland-scanner = { version = "0.31.1", path = "../wayland-scanner" }
bitflags = "2"
rustix = { version = "0.38.0", features = ["event"] }
log = { version = "0.4", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion wayland-cursor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description = "Bindings to libwayland-cursor."
readme = "README.md"

[dependencies]
wayland-client = { version = "0.31.0", path = "../wayland-client" }
wayland-client = { version = "0.31.2", path = "../wayland-client" }
xcursor = "0.3.1"
rustix = { version = "0.38.15", features = ["shm"] }

Expand Down
4 changes: 2 additions & 2 deletions wayland-egl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ description = "Bindings to libwayland-egl."
readme = "README.md"

[dependencies]
wayland-backend = { version = "0.3.0", path = "../wayland-backend", features = ["client_system"] }
wayland-sys = { version = "0.31.0", path="../wayland-sys", features = ["egl"] }
wayland-backend = { version = "0.3.3", path = "../wayland-backend", features = ["client_system"] }
wayland-sys = { version = "0.31.1", path="../wayland-sys", features = ["egl"] }

[package.metadata.docs.rs]
all-features = true
Expand Down
10 changes: 5 additions & 5 deletions wayland-protocols-misc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
wayland-scanner = { version = "0.31.0", path = "../wayland-scanner" }
wayland-backend = { version = "0.3.0", path = "../wayland-backend" }
wayland-client = { version = "0.31.0", path = "../wayland-client", optional = true }
wayland-server = { version = "0.31.0", path = "../wayland-server", optional = true }
wayland-protocols = { version = "0.31.0", path = "../wayland-protocols", features=["unstable"] }
wayland-scanner = { version = "0.31.1", path = "../wayland-scanner" }
wayland-backend = { version = "0.3.3", path = "../wayland-backend" }
wayland-client = { version = "0.31.2", path = "../wayland-client", optional = true }
wayland-server = { version = "0.31.1", path = "../wayland-server", optional = true }
wayland-protocols = { version = "0.31.2", path = "../wayland-protocols", features=["unstable"] }
bitflags = "2"

[features]
Expand Down
10 changes: 5 additions & 5 deletions wayland-protocols-plasma/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
wayland-scanner = { version = "0.31.0", path = "../wayland-scanner" }
wayland-backend = { version = "0.3.0", path = "../wayland-backend" }
wayland-client = { version = "0.31.0", path = "../wayland-client", optional = true }
wayland-server = { version = "0.31.0", path = "../wayland-server", optional = true }
wayland-protocols = { version = "0.31.0", path = "../wayland-protocols"}
wayland-scanner = { version = "0.31.1", path = "../wayland-scanner" }
wayland-backend = { version = "0.3.3", path = "../wayland-backend" }
wayland-client = { version = "0.31.2", path = "../wayland-client", optional = true }
wayland-server = { version = "0.31.1", path = "../wayland-server", optional = true }
wayland-protocols = { version = "0.31.2", path = "../wayland-protocols"}
bitflags = "2"

[features]
Expand Down
10 changes: 5 additions & 5 deletions wayland-protocols-wlr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
wayland-scanner = { version = "0.31.0", path = "../wayland-scanner" }
wayland-backend = { version = "0.3.0", path = "../wayland-backend" }
wayland-client = { version = "0.31.0", path = "../wayland-client", optional = true }
wayland-server = { version = "0.31.0", path = "../wayland-server", optional = true }
wayland-protocols = { version = "0.31.0", path = "../wayland-protocols"}
wayland-scanner = { version = "0.31.1", path = "../wayland-scanner" }
wayland-backend = { version = "0.3.3", path = "../wayland-backend" }
wayland-client = { version = "0.31.2", path = "../wayland-client", optional = true }
wayland-server = { version = "0.31.1", path = "../wayland-server", optional = true }
wayland-protocols = { version = "0.31.2", path = "../wayland-protocols"}
bitflags = "2"

[features]
Expand Down
8 changes: 4 additions & 4 deletions wayland-protocols/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ rust-version = "1.65"
readme = "README.md"

[dependencies]
wayland-scanner = { version = "0.31.0", path = "../wayland-scanner" }
wayland-backend = { version = "0.3.0", path = "../wayland-backend" }
wayland-client = { version = "0.31.0", path = "../wayland-client", optional = true }
wayland-server = { version = "0.31.0", path = "../wayland-server", optional = true }
wayland-scanner = { version = "0.31.1", path = "../wayland-scanner" }
wayland-backend = { version = "0.3.3", path = "../wayland-backend" }
wayland-client = { version = "0.31.2", path = "../wayland-client", optional = true }
wayland-server = { version = "0.31.1", path = "../wayland-server", optional = true }
bitflags = "2"

[features]
Expand Down
4 changes: 2 additions & 2 deletions wayland-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ rust-version = "1.65"
readme = "README.md"

[dependencies]
wayland-backend = { version = "0.3.0", path = "../wayland-backend" }
wayland-scanner = { version = "0.31.0", path = "../wayland-scanner" }
wayland-backend = { version = "0.3.3", path = "../wayland-backend" }
wayland-scanner = { version = "0.31.1", path = "../wayland-scanner" }
bitflags = "2"
log = { version = "0.4", optional = true }
downcast-rs = "1.2"
Expand Down
Loading