diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6202f3..fcc0189 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ permissions: on: push: + pull_request: jobs: clippy: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..8440814 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: Publish to crates.io + +on: workflow_dispatch + +permissions: + contents: read + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Install Rust Stable + uses: dtolnay/rust-toolchain@stable + + - name: Publish + run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{secrets.CRATES_IO_PUBLISH}} diff --git a/Cargo.toml b/Cargo.toml index bca27e5..f0b0304 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ description = "Build & Validation Tool for the Inertya Specification" authors = ["Sky "] repository = "https://github.com/inertya/nr-spec-md" license = "MIT OR Apache-2.0" +exclude = [".github"] [dependencies] anyhow = "1"