Skip to content

Commit 206fe1c

Browse files
committed
Add release-drafter
1 parent a73298d commit 206fe1c

File tree

6 files changed

+56
-11
lines changed

6 files changed

+56
-11
lines changed

.github/release-drafter.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name-template: '$NEXT_MINOR_VERSION'
2+
tag-template: 'v$NEXT_MINOR_VERSION'
3+
categories:
4+
- title: 'Added'
5+
labels:
6+
- 'feature'
7+
- title: 'Changed'
8+
labels:
9+
- 'enhancement'
10+
- 'dependency-update'
11+
- title: 'Fixed'
12+
labels:
13+
- 'fix'
14+
- 'bugfix'
15+
- 'bug'
16+
exclude-labels:
17+
- 'skip-changelog'
18+
- 'docs'
19+
- 'build'
20+
change-template: '- $TITLE [#$NUMBER](https://github.com/sbt/sbt-jni/pull/$NUMBER) (@$AUTHOR)'
21+
template: |
22+
$CHANGES

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches: ['**']
77
tags: [v*]
8+
release:
9+
types: [published]
810
jobs:
911
build:
1012
name: Build and Test
@@ -32,7 +34,7 @@ jobs:
3234
publish:
3335
name: Publish Artifacts
3436
needs: [build]
35-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
37+
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
3638
strategy:
3739
matrix:
3840
os: [ubuntu-latest]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
10+
jobs:
11+
update_release_draft:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: release-drafter/[email protected]
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased]
88

99
### Added
10-
- Scala 3 support [#45](https://github.com/sbt/sbt-jni/issues/45)
11-
- Add CMake support of versions < 3.15 [#51](https://github.com/sbt/sbt-jni/pull/51)
12-
- Add support for Rust/Cargo [#42](https://github.com/sbt/sbt-jni/pull/42)
10+
11+
- Add support for Cargo (Rust) [#42](https://github.com/sbt/sbt-jni/pull/42) (@sideeffffect)
12+
- Add CMake support of versions < 3.15 [#51](https://github.com/sbt/sbt-jni/pull/51) (@pomadchin)
13+
- Scala 3 API & project cross compilation [#48](https://github.com/sbt/sbt-jni/pull/48) (@pomadchin)
14+
- Use cmake platform build tool [#40](https://github.com/sbt/sbt-jni/pull/40) (@kammoh)
1315

1416
### Changed
15-
- Upgrade gjavah [#43](https://github.com/sbt/sbt-jni/pull/43)
16-
- Use cmake platform build tool [#40](https://github.com/sbt/sbt-jni/issues/40)
17-
- Rename macro project to core and simplify Scala 3 support [#52](https://github.com/sbt/sbt-jni/pull/52)
18-
- ch.jodersky => com.github.sbt packages rename [#55](https://github.com/sbt/sbt-jni/pull/55)
17+
18+
- ch.jodersky => com.github.sbt packages rename [#55](https://github.com/sbt/sbt-jni/pull/55) (@pomadchin)
19+
- Change the way sbt-jni-core scope is defined [#53](https://github.com/sbt/sbt-jni/pull/53) (@pomadchin)
20+
- Rename macro project to core and simplify Scala 3 support [#52](https://github.com/sbt/sbt-jni/pull/52) (@pomadchin)
21+
- Upgrade gjavah [#43](https://github.com/sbt/sbt-jni/pull/43) (@sideeffffect)
22+
- Add scalafmt, upd SBT version, add CHANGELOG, adjust CI [#47](https://github.com/sbt/sbt-jni/pull/47) (@pomadchin)
1923

2024
### Fixed
21-
- javah failed with ClassCastException [#38](https://github.com/sbt/sbt-jni/issues/38)
25+
26+
- fix for #38: sbt 1.4.x [#39](https://github.com/sbt/sbt-jni/pull/39) (@kammoh)
2227

2328
## [1.4.1] - 2019-12-13
2429

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Source directory is set to `baseDirectory.value` since the `Cargo` project struc
194194
195195
```
196196

197-
By default, `Cargo` build is launched with the `--release` flag. It is possible to configure `Cargo` profile by overriding the `nativeBuildTool`:
197+
By default, `Cargo` build is launched with the `--release` flag. It is possible to configure `Cargo` profile by overriding the `nativeBuildTool` setting:
198198

199199
```scala
200200
nativeBuildTool := Cargo.make(release = false)

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ lazy val plugin = project
7979
| final val Core = "${version.value}"
8080
|}
8181
|""".stripMargin
82-
val file = sourceManaged.value / "ch" / "jodersky" / "sbt" / "jni" / "ProjectVersion.scala"
82+
val file = sourceManaged.value / "com" / "github" / "sbt" / "jni" / "ProjectVersion.scala"
8383
IO.write(file, src)
8484
Seq(file)
8585
}.taskValue,

0 commit comments

Comments
 (0)