Skip to content

Commit

Permalink
Adds manual publish workflow and makes workflow layout consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Sep 20, 2021
1 parent cc12ba7 commit 253b0c0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
name: Security audit
on:
pull_request:
paths:
Expand All @@ -11,6 +10,8 @@ on:
schedule:
- cron: '7 7 7 * *'

name: Security audit

jobs:
audit:
name: Security audit
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 2 additions & 1 deletion .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Typos
on: [push, pull_request]

name: Typos

jobs:
spelling:
name: Check for typos
Expand Down

0 comments on commit 253b0c0

Please sign in to comment.