Skip to content

Commit

Permalink
Merge pull request #10 from rtk-rs/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
gwbres authored Aug 24, 2024
2 parents 4fb78a9 + 275ed5e commit 4b75cdf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
time: "12:00"
open-pull-requests-limit: 10
21 changes: 21 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Rust
on:
push:
branches: [ "main" ]
tags:
- "*"
pull_request:
branches: [ "main" ]

Expand All @@ -26,3 +28,22 @@ jobs:
run: cargo fmt --all -- --check
- name: Documentation
run: cargo doc --all-features

release:
name: Release
runs-on: ubuntu-latest
needs: [build]
if: github.ref_type == 'tag'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Publish
env:
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: |
cargo login $TOKEN
cargo publish

0 comments on commit 4b75cdf

Please sign in to comment.