From 253b0c0f26666ad349a21389f8c3e217732b80e0 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Mon, 20 Sep 2021 14:13:42 -0700 Subject: [PATCH] Adds manual publish workflow and makes workflow layout consistent --- .github/workflows/audit.yml | 3 ++- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ .github/workflows/typos.yml | 3 ++- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 377fa69..09af914 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -1,4 +1,3 @@ -name: Security audit on: pull_request: paths: @@ -11,6 +10,8 @@ on: schedule: - cron: '7 7 7 * *' +name: Security audit + jobs: audit: name: Security audit diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..459feeb --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +on: workflow_dispatch + +name: Manual Publish + +env: + RUST_TOOLCHAIN: stable + TOOLCHAIN_PROFILE: minimal + +jobs: + publish: + name: Publish to crates.io + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: ${{ env.TOOLCHAIN_PROFILE }} + toolchain: ${{ env.RUST_TOOLCHAIN }} + override: true + - uses: katyo/publish-crates@v1 + with: + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 4fe5b29..57f7dad 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -1,6 +1,7 @@ -name: Typos on: [push, pull_request] +name: Typos + jobs: spelling: name: Check for typos