From d1935d4e46274d8ae66d6b77c321be92349fd2b8 Mon Sep 17 00:00:00 2001 From: Tomas Tauber Date: Fri, 29 Jul 2022 23:55:27 +0800 Subject: [PATCH] bump version numbers and split up the release flow (a workaround for https://github.com/katyo/publish-crates/issues/291 ) --- .github/workflows/release.yml | 43 ++++++++++++++++++++++++++++++++++- derive/Cargo.toml | 6 ++--- generator/Cargo.toml | 6 ++--- grammars/Cargo.toml | 6 ++--- meta/Cargo.toml | 4 ++-- pest/Cargo.toml | 2 +- vm/Cargo.toml | 6 ++--- 7 files changed, 57 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ea20275..f3771480 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,8 +21,49 @@ jobs: - name: Bootstraping Grammars - Executing run: cargo run --package pest_bootstrap # it should figure out the right order: https://github.com/katyo/publish-crates#features - - name: Publish crates + - name: Publish pest uses: katyo/publish-crates@v1 with: + path: './pest' + args: --allow-dirty --all-features + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: update + run: cargo update + - name: Publish pest_meta + uses: katyo/publish-crates@v1 + with: + path: './meta' + args: --allow-dirty --all-features + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: update + run: cargo update + - name: Publish pest_vm + uses: katyo/publish-crates@v1 + with: + path: './vm' + args: --allow-dirty --all-features + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: update + run: cargo update + - name: Publish pest_generator + uses: katyo/publish-crates@v1 + with: + path: './generator' + args: --allow-dirty --all-features + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: update + run: cargo update + - name: Publish pest_derive + uses: katyo/publish-crates@v1 + with: + path: './derive' + args: --allow-dirty --all-features + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: update + run: cargo update + - name: Publish pest_grammars + uses: katyo/publish-crates@v1 + with: + path: './grammars' args: --allow-dirty --all-features registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 5ad6439c..ec99faf8 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pest_derive" description = "pest's derive macro" -version = "2.2.0" +version = "2.2.1" edition = "2018" authors = ["Dragoș Tiselice "] homepage = "https://pest-parser.github.io/" @@ -23,5 +23,5 @@ std = ["pest/std", "pest_generator/std"] [dependencies] # for tests, included transitively anyway -pest = { path = "../pest", version = "2.2.0", default-features = false } -pest_generator = { path = "../generator", version = "2.2.0", default-features = false } +pest = { path = "../pest", version = "2.2.1", default-features = false } +pest_generator = { path = "../generator", version = "2.2.1", default-features = false } diff --git a/generator/Cargo.toml b/generator/Cargo.toml index ee4094a4..3ccd7949 100644 --- a/generator/Cargo.toml +++ b/generator/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pest_generator" description = "pest code generator" -version = "2.2.0" +version = "2.2.1" edition = "2018" authors = ["Dragoș Tiselice "] homepage = "https://pest-parser.github.io/" @@ -18,8 +18,8 @@ default = ["std"] std = ["pest/std"] [dependencies] -pest = { path = "../pest", version = "2.2.0", default-features = false } -pest_meta = { path = "../meta", version = "2.2.0" } +pest = { path = "../pest", version = "2.2.1", default-features = false } +pest_meta = { path = "../meta", version = "2.2.1" } proc-macro2 = "1.0" quote = "1.0" syn = "1.0" diff --git a/grammars/Cargo.toml b/grammars/Cargo.toml index 4a9dc043..e494e5f6 100644 --- a/grammars/Cargo.toml +++ b/grammars/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pest_grammars" description = "pest popular grammar implementations" -version = "2.2.0" +version = "2.2.1" edition = "2018" authors = ["Dragoș Tiselice "] homepage = "https://pest-parser.github.io/" @@ -14,8 +14,8 @@ readme = "_README.md" rust-version = "1.56" [dependencies] -pest = { path = "../pest", version = "2.2.0" } -pest_derive = { path = "../derive", version = "2.2.0" } +pest = { path = "../pest", version = "2.2.1" } +pest_derive = { path = "../derive", version = "2.2.1" } [dev-dependencies] criterion = "0.3" diff --git a/meta/Cargo.toml b/meta/Cargo.toml index 277f3083..3eed4841 100644 --- a/meta/Cargo.toml +++ b/meta/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pest_meta" description = "pest meta language parser and validator" -version = "2.2.0" +version = "2.2.1" edition = "2018" authors = ["Dragoș Tiselice "] homepage = "https://pest-parser.github.io/" @@ -16,7 +16,7 @@ include = ["Cargo.toml", "src/**/*", "src/grammar.rs", "_README.md", "LICENSE-*" rust-version = "1.56" [dependencies] -pest = { path = "../pest", version = "2.2.0" } +pest = { path = "../pest", version = "2.2.1" } once_cell = "1.8.0" [build-dependencies] diff --git a/pest/Cargo.toml b/pest/Cargo.toml index a56f0812..7c17c96a 100644 --- a/pest/Cargo.toml +++ b/pest/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pest" description = "The Elegant Parser" -version = "2.2.0" +version = "2.2.1" edition = "2018" authors = ["Dragoș Tiselice "] homepage = "https://pest-parser.github.io/" diff --git a/vm/Cargo.toml b/vm/Cargo.toml index 217b35cb..5378a4ee 100644 --- a/vm/Cargo.toml +++ b/vm/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pest_vm" description = "pest grammar virtual machine" -version = "2.2.0" +version = "2.2.1" edition = "2018" authors = ["Dragoș Tiselice "] homepage = "https://pest-parser.github.io/" @@ -14,5 +14,5 @@ readme = "_README.md" rust-version = "1.56" [dependencies] -pest = { path = "../pest", version = "2.2.0" } -pest_meta = { path = "../meta", version = "2.2.0" } +pest = { path = "../pest", version = "2.2.1" } +pest_meta = { path = "../meta", version = "2.2.1" }