Skip to content

Commit

Permalink
Merge pull request #6 from codad5/master
Browse files Browse the repository at this point in the history
pull from master
  • Loading branch information
codad5 committed May 25, 2023
2 parents a4919a6 + 0caf47e commit cfe37d9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Crate

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy

- name: Build and Test
run: cargo build --verbose && cargo test --verbose

- name: Publish to Crates.io
run: cargo login YOUR_CARGO_TOKEN && cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}

0 comments on commit cfe37d9

Please sign in to comment.