Skip to content

Commit 31cb13d

Browse files
bors[bot]pksunkara
andauthored
Merge #4776
4776: Do a weekly minor publish to crates.io r=matklad a=pksunkara This is the same system I set up on Chalk repo. Every week it creates a new minor version, pushes it to github and then deploys it to crates.io. Co-authored-by: Pavan Kumar Sunkara <[email protected]>
2 parents 150e384 + 335add4 commit 31cb13d

File tree

29 files changed

+168
-98
lines changed

29 files changed

+168
-98
lines changed

.github/workflows/publish.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: publish
2+
on:
3+
workflow_dispatch: # We can add version input when 1.0 is released and scheduled releases are removed
4+
5+
schedule:
6+
- cron: "0 0 * * *" # midnight UTC
7+
8+
push:
9+
branches:
10+
- release
11+
12+
jobs:
13+
publish:
14+
name: publish
15+
runs-on: ubuntu-16.04
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Install Rust toolchain
23+
uses: actions-rs/toolchain@v1
24+
with:
25+
toolchain: stable
26+
profile: minimal
27+
override: true
28+
29+
- name: Install cargo-workspaces
30+
uses: actions-rs/[email protected]
31+
with:
32+
crate: cargo-workspaces
33+
34+
- name: Release
35+
env:
36+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
37+
PATCH: ${{ github.run_number }}
38+
shell: bash
39+
run: |
40+
git config --global user.email "[email protected]"
41+
git config --global user.name "Github Action"
42+
rm Cargo.lock
43+
cargo workspaces rename ra_ap_%n
44+
cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH

crates/assists/Cargo.toml

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "assists"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -13,11 +14,11 @@ rustc-hash = "1.1.0"
1314
itertools = "0.9.0"
1415
either = "1.5.3"
1516

16-
stdx = { path = "../stdx" }
17-
syntax = { path = "../syntax" }
18-
text_edit = { path = "../text_edit" }
19-
profile = { path = "../profile" }
20-
base_db = { path = "../base_db" }
21-
ide_db = { path = "../ide_db" }
22-
hir = { path = "../hir" }
23-
test_utils = { path = "../test_utils" }
17+
stdx = { path = "../stdx", version = "0.0.0" }
18+
syntax = { path = "../syntax", version = "0.0.0" }
19+
text_edit = { path = "../text_edit", version = "0.0.0" }
20+
profile = { path = "../profile", version = "0.0.0" }
21+
base_db = { path = "../base_db", version = "0.0.0" }
22+
ide_db = { path = "../ide_db", version = "0.0.0" }
23+
hir = { path = "../hir", version = "0.0.0" }
24+
test_utils = { path = "../test_utils", version = "0.0.0" }

crates/base_db/Cargo.toml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "base_db"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -12,10 +13,10 @@ doctest = false
1213
salsa = "0.15.2"
1314
rustc-hash = "1.1.0"
1415

15-
syntax = { path = "../syntax" }
16-
cfg = { path = "../cfg" }
17-
profile = { path = "../profile" }
18-
tt = { path = "../tt" }
19-
test_utils = { path = "../test_utils" }
20-
vfs = { path = "../vfs" }
21-
stdx = { path = "../stdx" }
16+
syntax = { path = "../syntax", version = "0.0.0" }
17+
cfg = { path = "../cfg", version = "0.0.0" }
18+
profile = { path = "../profile", version = "0.0.0" }
19+
tt = { path = "../tt", version = "0.0.0" }
20+
test_utils = { path = "../test_utils", version = "0.0.0" }
21+
vfs = { path = "../vfs", version = "0.0.0" }
22+
stdx = { path = "../stdx", version = "0.0.0" }

crates/cfg/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "cfg"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -11,7 +12,7 @@ doctest = false
1112
[dependencies]
1213
rustc-hash = "1.1.0"
1314

14-
tt = { path = "../tt" }
15+
tt = { path = "../tt", version = "0.0.0" }
1516

1617
[dev-dependencies]
1718
mbe = { path = "../mbe" }

crates/flycheck/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "flycheck"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -15,4 +16,4 @@ cargo_metadata = "0.11.1"
1516
serde_json = "1.0.48"
1617
jod-thread = "0.1.1"
1718

18-
toolchain = { path = "../toolchain" }
19+
toolchain = { path = "../toolchain", version = "0.0.0" }

crates/hir/Cargo.toml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "hir"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -15,10 +16,10 @@ either = "1.5.3"
1516
arrayvec = "0.5.1"
1617
itertools = "0.9.0"
1718

18-
stdx = { path = "../stdx" }
19-
syntax = { path = "../syntax" }
20-
base_db = { path = "../base_db" }
21-
profile = { path = "../profile" }
22-
hir_expand = { path = "../hir_expand" }
23-
hir_def = { path = "../hir_def" }
24-
hir_ty = { path = "../hir_ty" }
19+
stdx = { path = "../stdx", version = "0.0.0" }
20+
syntax = { path = "../syntax", version = "0.0.0" }
21+
base_db = { path = "../base_db", version = "0.0.0" }
22+
profile = { path = "../profile", version = "0.0.0" }
23+
hir_expand = { path = "../hir_expand", version = "0.0.0" }
24+
hir_def = { path = "../hir_def", version = "0.0.0" }
25+
hir_ty = { path = "../hir_ty", version = "0.0.0" }

crates/hir_def/Cargo.toml

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "hir_def"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -20,16 +21,16 @@ itertools = "0.9.0"
2021
indexmap = "1.4.0"
2122
smallvec = "1.4.0"
2223

23-
stdx = { path = "../stdx" }
24-
arena = { path = "../arena" }
25-
base_db = { path = "../base_db" }
26-
syntax = { path = "../syntax" }
27-
profile = { path = "../profile" }
28-
hir_expand = { path = "../hir_expand" }
29-
test_utils = { path = "../test_utils" }
30-
mbe = { path = "../mbe" }
31-
cfg = { path = "../cfg" }
32-
tt = { path = "../tt" }
24+
stdx = { path = "../stdx", version = "0.0.0" }
25+
arena = { path = "../arena", version = "0.0.0" }
26+
base_db = { path = "../base_db", version = "0.0.0" }
27+
syntax = { path = "../syntax", version = "0.0.0" }
28+
profile = { path = "../profile", version = "0.0.0" }
29+
hir_expand = { path = "../hir_expand", version = "0.0.0" }
30+
test_utils = { path = "../test_utils", version = "0.0.0" }
31+
mbe = { path = "../mbe", version = "0.0.0" }
32+
cfg = { path = "../cfg", version = "0.0.0" }
33+
tt = { path = "../tt", version = "0.0.0" }
3334

3435
[dev-dependencies]
3536
expect-test = "0.1"

crates/hir_expand/Cargo.toml

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "hir_expand"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -13,11 +14,11 @@ log = "0.4.8"
1314
either = "1.5.3"
1415
rustc-hash = "1.0.0"
1516

16-
arena = { path = "../arena" }
17-
base_db = { path = "../base_db" }
18-
syntax = { path = "../syntax" }
19-
parser = { path = "../parser" }
20-
profile = { path = "../profile" }
21-
tt = { path = "../tt" }
22-
mbe = { path = "../mbe" }
23-
test_utils = { path = "../test_utils"}
17+
arena = { path = "../arena", version = "0.0.0" }
18+
base_db = { path = "../base_db", version = "0.0.0" }
19+
syntax = { path = "../syntax", version = "0.0.0" }
20+
parser = { path = "../parser", version = "0.0.0" }
21+
profile = { path = "../profile", version = "0.0.0" }
22+
tt = { path = "../tt", version = "0.0.0" }
23+
mbe = { path = "../mbe", version = "0.0.0" }
24+
test_utils = { path = "../test_utils", version = "0.0.0" }

crates/hir_ty/Cargo.toml

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "hir_ty"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -20,14 +21,14 @@ chalk-solve = { version = "0.23.0" }
2021
chalk-ir = { version = "0.23.0" }
2122
chalk-recursive = { version = "0.23.0" }
2223

23-
stdx = { path = "../stdx" }
24-
hir_def = { path = "../hir_def" }
25-
hir_expand = { path = "../hir_expand" }
26-
arena = { path = "../arena" }
27-
base_db = { path = "../base_db" }
28-
profile = { path = "../profile" }
29-
syntax = { path = "../syntax" }
30-
test_utils = { path = "../test_utils" }
24+
stdx = { path = "../stdx", version = "0.0.0" }
25+
hir_def = { path = "../hir_def", version = "0.0.0" }
26+
hir_expand = { path = "../hir_expand", version = "0.0.0" }
27+
arena = { path = "../arena", version = "0.0.0" }
28+
base_db = { path = "../base_db", version = "0.0.0" }
29+
profile = { path = "../profile", version = "0.0.0" }
30+
syntax = { path = "../syntax", version = "0.0.0" }
31+
test_utils = { path = "../test_utils", version = "0.0.0" }
3132

3233
[dev-dependencies]
3334
expect-test = "0.1"

crates/ide/Cargo.toml

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "ide"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -16,20 +17,20 @@ log = "0.4.8"
1617
rustc-hash = "1.1.0"
1718
oorandom = "11.1.2"
1819

19-
stdx = { path = "../stdx" }
20-
syntax = { path = "../syntax" }
21-
text_edit = { path = "../text_edit" }
22-
base_db = { path = "../base_db" }
23-
ide_db = { path = "../ide_db" }
24-
cfg = { path = "../cfg" }
25-
profile = { path = "../profile" }
26-
test_utils = { path = "../test_utils" }
27-
assists = { path = "../assists" }
28-
ssr = { path = "../ssr" }
20+
stdx = { path = "../stdx", version = "0.0.0" }
21+
syntax = { path = "../syntax", version = "0.0.0" }
22+
text_edit = { path = "../text_edit", version = "0.0.0" }
23+
base_db = { path = "../base_db", version = "0.0.0" }
24+
ide_db = { path = "../ide_db", version = "0.0.0" }
25+
cfg = { path = "../cfg", version = "0.0.0" }
26+
profile = { path = "../profile", version = "0.0.0" }
27+
test_utils = { path = "../test_utils", version = "0.0.0" }
28+
assists = { path = "../assists", version = "0.0.0" }
29+
ssr = { path = "../ssr", version = "0.0.0" }
2930

3031
# ide should depend only on the top-level `hir` package. if you need
3132
# something from some `hir_xxx` subpackage, reexport the API via `hir`.
32-
hir = { path = "../hir" }
33+
hir = { path = "../hir", version = "0.0.0" }
3334

3435
[dev-dependencies]
3536
expect-test = "0.1"

crates/ide_db/Cargo.toml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "ide_db"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -19,12 +20,12 @@ rustc-hash = "1.1.0"
1920
once_cell = "1.3.1"
2021
either = "1.5.3"
2122

22-
stdx = { path = "../stdx" }
23-
syntax = { path = "../syntax" }
24-
text_edit = { path = "../text_edit" }
25-
base_db = { path = "../base_db" }
26-
profile = { path = "../profile" }
27-
test_utils = { path = "../test_utils" }
23+
stdx = { path = "../stdx", version = "0.0.0" }
24+
syntax = { path = "../syntax", version = "0.0.0" }
25+
text_edit = { path = "../text_edit", version = "0.0.0" }
26+
base_db = { path = "../base_db", version = "0.0.0" }
27+
profile = { path = "../profile", version = "0.0.0" }
28+
test_utils = { path = "../test_utils", version = "0.0.0" }
2829
# ide should depend only on the top-level `hir` package. if you need
2930
# something from some `hir_xxx` subpackage, reexport the API via `hir`.
30-
hir = { path = "../hir" }
31+
hir = { path = "../hir", version = "0.0.0" }

crates/mbe/Cargo.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "mbe"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -13,9 +14,9 @@ rustc-hash = "1.1.0"
1314
smallvec = "1.2.0"
1415
log = "0.4.8"
1516

16-
syntax = { path = "../syntax" }
17-
parser = { path = "../parser" }
18-
tt = { path = "../tt" }
17+
syntax = { path = "../syntax", version = "0.0.0" }
18+
parser = { path = "../parser", version = "0.0.0" }
19+
tt = { path = "../tt", version = "0.0.0" }
1920

2021
[dev-dependencies]
2122
test_utils = { path = "../test_utils" }

crates/parser/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "parser"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"

crates/paths/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "paths"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"

crates/proc_macro_api/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "proc_macro_api"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -15,4 +16,4 @@ log = "0.4.8"
1516
crossbeam-channel = "0.4.0"
1617
jod-thread = "0.1.1"
1718

18-
tt = { path = "../tt" }
19+
tt = { path = "../tt", version = "0.0.0" }

crates/proc_macro_srv/Cargo.toml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "proc_macro_srv"
33
version = "0.0.0"
4+
description = "TBD"
45
license = "MIT OR Apache-2.0"
56
authors = ["rust-analyzer developers"]
67
edition = "2018"
@@ -13,10 +14,10 @@ goblin = "0.2.1"
1314
libloading = "0.6.0"
1415
memmap = "0.7"
1516

16-
tt = { path = "../tt" }
17-
mbe = { path = "../mbe" }
18-
proc_macro_api = { path = "../proc_macro_api" }
19-
test_utils = { path = "../test_utils" }
17+
tt = { path = "../tt", version = "0.0.0" }
18+
mbe = { path = "../mbe", version = "0.0.0" }
19+
proc_macro_api = { path = "../proc_macro_api", version = "0.0.0" }
20+
test_utils = { path = "../test_utils", version = "0.0.0" }
2021

2122
[dev-dependencies]
2223
cargo_metadata = "0.11.1"

crates/proc_macro_test/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.0.0"
44
license = "MIT OR Apache-2.0"
55
authors = ["rust-analyzer developers"]
66
edition = "2018"
7+
publish = false
78

89
[lib]
910
doctest = false

0 commit comments

Comments
 (0)