Skip to content

Commit 3d07235

Browse files
committed
Setup releases with Github
1 parent 9e8cd2b commit 3d07235

File tree

8 files changed

+55
-27
lines changed

8 files changed

+55
-27
lines changed

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"extends": [
44
"github>cucumber/renovate-config"
55
]
6-
}
6+
}

.github/workflows/release-github.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Release GitHub
22

3+
permissions: { }
4+
35
on:
46
push:
57
branches: [release/*]
@@ -13,6 +15,34 @@ jobs:
1315
contents: write
1416
steps:
1517
- uses: actions/checkout@v6
18+
- uses: actions/setup-java@v5
19+
with:
20+
distribution: 'temurin'
21+
java-version: '21'
22+
cache: 'maven'
23+
- run: |
24+
mvn verify
25+
# Test if the jar file works
26+
./target/app/bin/cucumber-messages-cli --help
27+
working-directory: java
1628
- uses: cucumber/[email protected]
1729
with:
1830
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
- name: upload Unix artifact
32+
uses: actions/upload-release-asset@v1
33+
env:
34+
GITHUB_TOKEN: ${{ github.token }}
35+
with:
36+
upload_url: ${{ steps.create_release.outputs.upload_url }}
37+
asset_path: java/target/distributions/app/cucumber-messages-cli.tar.gz
38+
asset_name: cucumber-messages-cli.tar.gz
39+
asset_content_type: application/gzip
40+
- name: upload Windows artifact
41+
uses: actions/upload-release-asset@v1
42+
env:
43+
GITHUB_TOKEN: ${{ github.token }}
44+
with:
45+
upload_url: ${{ steps.create_release.outputs.upload_url }}
46+
asset_path: java/target/distributions/app/cucumber-messages-cli.zip
47+
asset_name: cucumber-messages-cli.zip
48+
asset_content_type: application/zip

.github/workflows/release-mvn.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/test-java.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: test-java
22

3+
permissions: { }
4+
35
on:
46
push:
57
branches:
@@ -36,6 +38,9 @@ jobs:
3638
java-version: ${{ matrix.java }}
3739
cache: 'maven'
3840

39-
- run: mvn verify
41+
- run: |
42+
mvn verify
43+
# Test if the jar file works
44+
./target/app/bin/cucumber-messages-cli --help
4045
working-directory: java
4146

.github/workflows/test-testdata.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: test-testdata
22

3+
permissions: { }
4+
35
on:
46
push:
57
branches:

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
### Changed
10+
- Initial release
11+
12+
[Unreleased]: https://github.com/cucumber/messages-cli/compare/1c14a4838e49c7c0b02c09d884b9c783790070f0...HEAD

java/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@
115115
</dependencies>
116116

117117
<build>
118+
<finalName>${project.artifactId}</finalName>
119+
118120
<resources>
119121
<resource>
120122
<directory>src/main/resources</directory>

java/src/main/assembly/assembly.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
<include>README*</include>
1414
<include>LICENSE*</include>
1515
</includes>
16+
<outputDirectory></outputDirectory>
1617
</fileSet>
1718
<fileSet>
1819
<directory>${project.build.directory}/app</directory>
20+
<outputDirectory></outputDirectory>
1921
</fileSet>
2022
</fileSets>
2123
</assembly>

0 commit comments

Comments
 (0)