Skip to content

Commit

Permalink
chore(ci): add "publish-dry-run"
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanBorai committed Jun 19, 2021
1 parent 22e03d9 commit a3257c8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish-dry-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish-dry-run

on:
pull_request:
push:
branches:
- main

jobs:
publish-dry-run:
name: "Runs cargo publish --dry-run"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- name: publish crate
run: cargo publish --dry-run
10 changes: 0 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,6 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Cargo Publish Dry Run
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: cargo publish --dry-run

- name: publish crate
run: cargo publish

- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down

0 comments on commit a3257c8

Please sign in to comment.