Skip to content

Commit

Permalink
Dry run subcrate publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Jan 27, 2024
1 parent 5e8abe9 commit 1b4b481
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-crate-dry-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: PublishDryRun

on:
workflow_dispatch
inputs:
crate:
required: true
type: choice
description: Crate to publish
options:
- edge-std-nal-async
- embedded-nal-async-xtra
- edge-captive
- edge-dhcp
- edge-http
- edge-mdns
- edge-mqtt
- edge-raw
- edge-ws

env:
rust_toolchain: stable

jobs:
publishdryrun:
name: Publish Dry Run
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.rust_toolchain }}
- name: Setup | Std
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu
- name: Setup | Set default toolchain
run: rustup default ${{ env.rust_toolchain }}
- name: Build | Publish Dry Run
run: cd "${{ github.event.inputs.crate }}; cargo publish --dry-run

0 comments on commit 1b4b481

Please sign in to comment.