Skip to content

Commit 58f0832

Browse files
committed
ci: added release step for main branch
Test publishing CI (#75)
1 parent 4738d0f commit 58f0832

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

.github/workflows/CI.yml

+14-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
11
name: Continuous Integration
2-
on:
3-
workflow_dispatch:
4-
push:
5-
paths:
6-
- ".github/workflows/CI.yml"
7-
- "**.rs"
8-
- "Cargo.lock"
9-
- "Cargo.toml"
10-
pull_request:
11-
paths:
12-
- ".github/workflows/CI.yml"
13-
- "**.rs"
14-
- "Cargo.lock"
15-
- "Cargo.toml"
2+
on: push
3+
164
env:
175
CARGO_TERM_COLOR: always
18-
CARGO_INCREMENTAL: true
196

207
concurrency:
218
group: CI-${{ github.ref }}
@@ -103,3 +90,15 @@ jobs:
10390
toolchain: nightly
10491
- run: rustup component add rustfmt
10592
- run: cargo fmt --all -- --check
93+
94+
release:
95+
runs-on: ubuntu-latest
96+
name: release
97+
needs: [build, clippy, test, test-script, fmt]
98+
if: github.ref == 'refs/heads/release'
99+
steps:
100+
- uses: actions/checkout@v3
101+
- uses: dtolnay/rust-toolchain@stable
102+
- run: cargo publish
103+
env:
104+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "dsync"
33
description = "Generate rust structs & query functions from diesel schema files."
4-
version = "0.0.16"
4+
version = "0.0.17-alpha"
55
readme = "README.md"
66
repository = "https://github.com/Wulf/dsync"
77
license = "MIT OR Apache-2.0"

0 commit comments

Comments
 (0)