Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jonolehagemo committed Dec 7, 2022
2 parents ef71818 + 8c97b21 commit 23b096c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ jobs:
java-version: '17'
distribution: 'adopt'

- name: Output tag name
run: echo "github.ref_name = ${{github.ref_name}}"

- name: Set version with Maven
run: mvn --batch-mode --update-snapshots versions:set -DnewVersion=${{github.ref_name}}
run: mvn --batch-mode -U versions:set -DnewVersion=${{github.ref_name}}

- name: Build with Maven
run: mvn --batch-mode --update-snapshots -P github -Drevision=${{github.ref_name}} package
run: mvn --batch-mode -P github -Drevision=${{github.ref_name}} package

- name: Release
uses: softprops/action-gh-release@v1
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/run_on_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@ jobs:
java-version: '17'
distribution: 'adopt'

- name: Output tag name
run: echo "github.ref_name = ${{github.ref_name}}"

- name: Set version with Maven
run: mvn --batch-mode --update-snapshots versions:set -DnewVersion=${{github.ref_name}}
run: mvn --batch-mode -U versions:set -DnewVersion=${{github.ref_name}}

- name: Build with Maven
run: mvn --batch-mode package
run: mvn --batch-mode -P github -Drevision=${{github.ref_name}} package

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
./konsoll/target/jar/kostra-kontrollprogram-${{github.ref_name}}.jar
./web/target/jar/kostra-kontrollprogram-web-${{github.ref_name}}.jar
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import javax.xml.bind.annotation.*
data class KostraMelderType(

@field:XmlAttribute(name = "Kode", required = true)
val kode: String = "0",
val kode: String = "0", /** workaround for data that is missing this field due to previous bug in XSD */

@field:XmlElement(name = "Presisering")
val presisering: String? = null,
)
)

0 comments on commit 23b096c

Please sign in to comment.