Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
johnksv committed Jan 16, 2024
1 parent 5b5a4f5 commit 4ed4c1f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/release-drafter-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ autolabeler:
- label: 'documentation'
files:
- 'README.md'
- 'generated/java/datadoc-model/README.md'
- 'generated/python/datadoc_model/README.md'
- 'generated/java/dapla-kuben-resource-model/README.md'
- label: 'bug'
branch:
- '/fix\/.+/'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
pushd generated/java/datadoc-model
pushd generated/java/dapla-kuben-resource-model
# Get the release version from the pom.xml before the next snapshot increment
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed "s/-SNAPSHOT//")
echo "version=${VERSION}" >> $GITHUB_OUTPUT
Expand All @@ -86,7 +86,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
pushd generated/java/datadoc-model
pushd generated/java/dapla-kuben-resource-model
ARTIFACT_ID=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)
# Get all files matching the artifact id and version (source, javadoc, etc.)
ARTIFACT_GLOB=(./target/$ARTIFACT_ID-${{ steps.release_jar.outputs.version }}*.jar)
Expand Down
8 changes: 8 additions & 0 deletions generated/java/dapla-kuben-resource-model/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# dapla-kuben-resource-model


## Release

This packaged is built and released using the Maven Release Plugin and Github Actions.

To release a new version simply create a branch prefixed with `release-java` and everything else is taken care of, including version increment, tagging, building, pushing artifacts and a GitHub release.

0 comments on commit 4ed4c1f

Please sign in to comment.