Skip to content

Commit ca1b3a0

Browse files
authored
Merge pull request #4 from rtk-rs/ci-scripts
Ci scripts
2 parents 1b84cea + c00e2b8 commit ca1b3a0

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: cargo
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "12:00"
8+
open-pull-requests-limit: 10

.github/workflows/rust.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,22 @@ jobs:
2323
run: cargo build --verbose
2424
- name: Test (all features)
2525
run: cargo test --verbose --all-features
26+
27+
release:
28+
name: Release
29+
runs-on: ubuntu-latest
30+
needs: [build]
31+
if: github.ref_type == 'tag'
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
- name: Install stable toolchain
36+
uses: dtolnay/rust-toolchain@master
37+
with:
38+
toolchain: stable
39+
- name: Publish
40+
env:
41+
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
42+
run: |
43+
cargo login $TOKEN
44+
cargo publish

0 commit comments

Comments
 (0)