Skip to content

Commit

Permalink
release 3.18
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-kuba committed Sep 2, 2020
1 parent b10a20c commit 3c4c01d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '13' ]
java: [ '8', '11' ]
name: Java ${{ matrix.java }} build
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# from https://github.com/actions/upload-release-asset
name: "Make a release"
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
publish:
name: "Build and upload release asset"
runs-on: ubuntu-latest
steps:
- name: "Check out code"
uses: actions/checkout@v2
- name: "Set up JDK"
uses: actions/setup-java@v1
with:
java-version: 8
- name: "Cache"
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: "Compile and package"
run: mvn -B clean install
- name: "Create Release"
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: "Upload Release Asset"
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: pbsmon/target/pbsmon2.war
asset_name: pbsmon2.war
asset_content_type: application/x-webarchive
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.6.RELEASE</version>
<relativePath/>
<version>2.3.3.RELEASE</version>
</parent>

<!-- specifies versions not defined by the Spring platform-bom -->
Expand Down

0 comments on commit 3c4c01d

Please sign in to comment.