Skip to content

Commit

Permalink
ci: added release step for main branch
Browse files Browse the repository at this point in the history
Test publishing CI (#75)
  • Loading branch information
Wulf committed Sep 4, 2023
1 parent 4738d0f commit 58f0832
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
name: Continuous Integration
on:
workflow_dispatch:
push:
paths:
- ".github/workflows/CI.yml"
- "**.rs"
- "Cargo.lock"
- "Cargo.toml"
pull_request:
paths:
- ".github/workflows/CI.yml"
- "**.rs"
- "Cargo.lock"
- "Cargo.toml"
on: push

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: true

concurrency:
group: CI-${{ github.ref }}
Expand Down Expand Up @@ -103,3 +90,15 @@ jobs:
toolchain: nightly
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check

release:
runs-on: ubuntu-latest
name: release
needs: [build, clippy, test, test-script, fmt]
if: github.ref == 'refs/heads/release'
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dsync"
description = "Generate rust structs & query functions from diesel schema files."
version = "0.0.16"
version = "0.0.17-alpha"
readme = "README.md"
repository = "https://github.com/Wulf/dsync"
license = "MIT OR Apache-2.0"
Expand Down

0 comments on commit 58f0832

Please sign in to comment.