-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 819 Bytes
/
cratesio.yaml
File metadata and controls
35 lines (30 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Crates.io Distribution
on:
push:
paths:
- '**.rs'
- '**.toml'
- '**.lock'
- '**.yaml'
- 'Dockerfile'
- 'crates/mdbx-remote/mdbx-sys/libmdbx/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Pull sources'
uses: actions/checkout@v4
- name: 'Set up Rust'
uses: dtolnay/rust-toolchain@stable
- name: 'Cargo test'
if: "!startsWith(github.ref, 'refs/tags')"
timeout-minutes: 5
run: |
cargo test
- name: 'Cargo Publish'
if: startsWith(github.ref, 'refs/tags')
timeout-minutes: 5
env:
TOKEN: ${{ secrets.MDBX_CRATES_IO }}
run: |
cargo login $TOKEN && cargo test && cargo publish -p mdbx-remote-sys && cargo publish -p libmdbx-remote