diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 251761048..98a93ae85 100755 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -5,14 +5,14 @@ on: tags: [ "*" ] jobs: - docs: + deploy: runs-on: macOS-latest steps: - uses: actions/checkout@v2 - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: 1.51.0 override: true - uses: Swatinem/rust-cache@v1 @@ -32,10 +32,5 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: target/doc - - name: Login into crates.io - run: cargo login ${CRATES_TOKEN} - env: - CRATES_IO_TOKEN: ${{ secrets.CRATES_TOKEN }} - - name: Publish into crates.io - run: cargo publish - + - name: Publish to crates.io + run: cargo login ${{ secrets.CARGO_TOKEN }} && cargo publish diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1e336e699..d8457d8b5 100755 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,6 +1,9 @@ name: Test -on: [push, pull_request] +on: + push: + tags-ignore: [ "*" ] + pull_request: {} jobs: test: