Skip to content

Commit

Permalink
ci: Add publish to Crates.io job
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Oct 3, 2023
1 parent 59a8243 commit f51ead5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,31 @@ jobs:
features: ${{ matrix.platform.features }}
target: ${{ matrix.platform.target }}
runs_on: ${{ matrix.platform.os }}

publish-cratesio:
name: Publishing to Crates.io
needs: release
runs-on: ubuntu-20.04
steps:

- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable

- name: Enable caching
uses: Swatinem/rust-cache@v2

- name: Publish espflash
run: |
cd espflash
cargo publish --dry-run
# cargo publish --token ${{ secrets.CARGO_API_KEY }}

- name: Publish cargo-espflash
run: |
cd cargo-espflash
cargo publish --dry-run
# cargo publish --token ${{ secrets.CARGO_API_KEY }}

0 comments on commit f51ead5

Please sign in to comment.