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 16, 2023
1 parent 8b628ee commit 3407721
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,33 @@ jobs:
features: ${{ matrix.platform.features }}
target: ${{ matrix.platform.target }}
runs_on: ${{ matrix.platform.os }}


publish-cratesio:
name: Publish to Crates.io
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: Install dependencies
run: sudo apt-get update && sudo apt-get install musl-tools libudev-dev

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

0 comments on commit 3407721

Please sign in to comment.