Skip to content

Commit

Permalink
Add cargo login to release
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioBatSilva committed Nov 1, 2020
1 parent 1b7e915 commit fe7b5d8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ jobs:
name: cargo publish
runs-on: ubuntu-18.04
needs: [release]
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
steps:
-
name: checkout
Expand All @@ -81,16 +79,23 @@ jobs:
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
-
name: cargo-login
uses: actions-rs/cargo@v1
with:
command: login
args: ${{ secrets.CARGO_TOKEN }}
-
name: cargo-publish-dry-run
uses: actions-rs/cargo@v1
if: "github.event.release.prerelease"
with:
command: publish
args: --dry-run --allow-dirty --token $CARGO_TOKEN
args: --allow-dirty --dry-run
-
name: cargo-publish-push
name: cargo-publish-release
uses: actions-rs/cargo@v1
if: "!github.event.release.prerelease"
with:
command: publish
args: --allow-dirty --token $CARGO_TOKEN
args: --allow-dirty

0 comments on commit fe7b5d8

Please sign in to comment.