Skip to content

Commit 8fab464

Browse files
authored
Merge pull request #4 from rtk-rs/CI
fix daily CI
2 parents 909cd1e + 5e2c696 commit 8fab464

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
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/daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: ${{ matrix.name }}
3939
run: |
40-
cd ${{ matrix.folder }} && cargo clean && cargo update && cargo build ${{ matrix.opts }}
40+
cargo clean && cargo update && cargo build ${{ matrix.opts }}
4141
4242
tests:
4343
name: Tests

.github/workflows/rust.yml

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

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Cargo.lock
2020
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
2121
#.idea/
2222

23-
qc/.cache
24-
2523
*.swo
2624
*.swp
25+
.cache

0 commit comments

Comments
 (0)