Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1bc8b44

Browse files
Add continuous delivery (#37)
By pushing a tag on main the CI will be triggered. The tags must follow the pattern `v*` (e.g v0.1.0) to trigger the publish job. The `publish` job requires the secret `CRATES_IO_TOKEN` to be configured in the repository settings.
1 parent ca9ce99 commit 1bc8b44

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Rust CI
33
on:
44
push:
55
branches: ["main"]
6+
tags: ["v*"]
67
pull_request:
78
types: [opened, synchronize, reopened]
89

@@ -49,3 +50,16 @@ jobs:
4950
profile: minimal
5051
toolchain: stable
5152
- run: cargo doc --all-features --no-deps
53+
54+
publish:
55+
name: publish on crates.io
56+
needs:
57+
- rustfmt
58+
- clippy
59+
- test
60+
- doc
61+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@v3
65+
- run: cargo publish -p jsonpath-rust --token ${{ secrets.CRATES_IO_TOKEN }}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /