Skip to content

Commit

Permalink
Merge pull request #7 from amadejkastelic/crate
Browse files Browse the repository at this point in the history
Rust crate
  • Loading branch information
amadejkastelic authored Oct 30, 2024
2 parents c9040b7 + f5dd609 commit 9f0f522
Show file tree
Hide file tree
Showing 6 changed files with 239 additions and 112 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
tags:
- '*'
workflow_dispatch:

name: Publish

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run rustfmt
run: cargo fmt -- --check
Loading

0 comments on commit 9f0f522

Please sign in to comment.