From 4eb90906df198c54374808647cc04c888e79d3a6 Mon Sep 17 00:00:00 2001 From: Irakliy Khaburzaniya Date: Tue, 24 Aug 2021 01:00:31 -0700 Subject: [PATCH] updated publish script --- .github/workflows/publish.yml | 45 ++++++++++++++--------------------- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 275a8ff99..d7a76625f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,57 +19,48 @@ jobs: - uses: actions/checkout@master - name: Login to crates.io run: cargo login ${{ secrets.crates_io_token }} # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets + # winter-utils - name: Dry run publish winter-utils run: cargo publish --dry-run --manifest-path utils/core/Cargo.toml - name: Publish winter-utils - run: cargo publish --manifest-path utils/core/Cargo.toml - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} + run: cargo publish --token ${{ secrets.crates_io_token }} --manifest-path utils/core/Cargo.toml + # winter-rand-utils - name: Dry run publish winter-rand-utils run: cargo publish --dry-run --manifest-path utils/rand/Cargo.toml - name: Publish winter-rand-utils - run: cargo publish --manifest-path utils/rand/Cargo.toml - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} + run: cargo publish --token ${{ secrets.crates_io_token }} --manifest-path utils/rand/Cargo.toml + # winter-math - name: Dry run publish winter-math run: cargo publish --dry-run --manifest-path math/Cargo.toml - name: Publish winter-math - run: cargo publish --manifest-path math/Cargo.toml - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} + run: cargo publish --token ${{ secrets.crates_io_token }} --manifest-path math/Cargo.toml + # winter-crypto - name: Dry run publish winter-crypto run: cargo publish --dry-run --manifest-path crypto/Cargo.toml - name: Publish winter-crypto - run: cargo publish --manifest-path crypto/Cargo.toml - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} + run: cargo publish --token ${{ secrets.crates_io_token }} --manifest-path crypto/Cargo.toml + # winter-fri - name: Dry run publish winter-fri run: cargo publish --dry-run --manifest-path fri/Cargo.toml - name: Publish winter-fri - run: cargo publish --manifest-path fri/Cargo.toml - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} + run: cargo publish --token ${{ secrets.crates_io_token }} --manifest-path fri/Cargo.toml + # winter-air - name: Dry run publish winter-air run: cargo publish --dry-run --manifest-path air/Cargo.toml - name: Publish winter-air - run: cargo publish --manifest-path air/Cargo.toml - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} + run: cargo publish --token ${{ secrets.crates_io_token }} --manifest-path air/Cargo.toml + # winter-prover - name: Dry run publish winter-prover run: cargo publish --dry-run --manifest-path prover/Cargo.toml - name: Publish winter-prover - run: cargo publish --manifest-path prover/Cargo.toml - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} + run: cargo publish --token ${{ secrets.crates_io_token }} --manifest-path prover/Cargo.toml + # winter-verifier - name: Dry run publish winter-verifier run: cargo publish --dry-run --manifest-path verifier/Cargo.toml - name: Publish winter-verifier - run: cargo publish --manifest-path verifier/Cargo.toml - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} + run: cargo publish --token ${{ secrets.crates_io_token }} --manifest-path verifier/Cargo.toml + # winterfell - name: Dry run publish winterfell run: cargo publish --dry-run --manifest-path winterfell/Cargo.toml - name: Publish winterfell - run: cargo publish --manifest-path winterfell/Cargo.toml - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} \ No newline at end of file + run: cargo publish --token ${{ secrets.crates_io_token }} --manifest-path winterfell/Cargo.toml