From 4aa09d2205fc589aca533af97610d37578c1e3fa Mon Sep 17 00:00:00 2001 From: Shabbir Hasan Date: Wed, 11 May 2022 10:41:12 +0530 Subject: [PATCH] Updated Cargo.toml --- .github/workflows/release.yml | 13 +++++-------- Cargo.toml | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0bc780..384da0f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,19 +68,18 @@ jobs: # command: test - uses: Swatinem/rust-cache@v1 - - name: Build macOS if: matrix.os == 'macos-latest' run: just build-mac - # - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v1 - name: Build Windows if: matrix.os == 'windows-latest' run: just build-win - # - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v1 - name: Build Linux if: matrix.os == 'ubuntu-latest' run: just build-linux - # - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v1 - name: Upload build artefacts uses: actions/upload-artifact@v3 @@ -88,11 +87,12 @@ jobs: name: binaries path: out/nse*.zip if-no-files-found: error - # - uses: Swatinem/rust-cache@v1 publish: runs-on: ubuntu-latest needs: build + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} steps: - uses: actions/checkout@v3 - uses: Swatinem/rust-cache@v1 @@ -111,7 +111,6 @@ jobs: uses: actions-rs/cargo@v1 with: command: publish - # - uses: Swatinem/rust-cache@v1 release: runs-on: ubuntu-latest @@ -129,7 +128,6 @@ jobs: # Remove the dots for the markdown header - name: MD Header run: echo "MD_HEADER=$(echo ${{ github.ref_name }} | sed 's/\.//g')" >> $GITHUB_ENV - # - uses: Swatinem/rust-cache@v1 - name: Create release uses: softprops/action-gh-release@v1 with: @@ -147,4 +145,3 @@ jobs: - MSVC Windows (x64 windows msvc) You can install these by downloading and unzipping the appropriate asset, and moving the executable to ~/bin or any other binary folder in your path. - # - uses: Swatinem/rust-cache@v1 diff --git a/Cargo.toml b/Cargo.toml index c74afc9..c84955b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nse" -version = "0.1.1" +version = "0.1.2" edition = "2021" authors = ["TechfaneTechnologies "] description = "NSE is a rust binary and library for extracting real-time data from National Stock Exchange (India)"