diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77b63950..1807ac8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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