Skip to content

Commit

Permalink
chore: desperately trying to fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ProspectPyxis committed Jul 3, 2022
1 parent 1118092 commit 6d9b9e4
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,42 @@ env:
CARGO_TERM_COLOR: always

jobs:
cargo-check:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: cargo check
uses: actions-rs/cargo@v1
with:
command: check

release-github:
needs: cargo-check
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: checkout
uses: actions/checkout@v3
- name: Release
- name: release to github
uses: softprops/action-gh-release@v1

release-crates-io:
needs: cargo-check
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: checkout
uses: actions/checkout@v3
- name: Setup rust toolchain
- name: setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Dry run publish
uses: katyo/publish-crates@v1
with:
dry-run: true
- name: Publish to crates.io
override: true
- name: publish to crates.io
uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 6d9b9e4

Please sign in to comment.