versions and release action update

This commit is contained in:
Jonathan Shook 2023-01-25 21:54:54 -06:00
parent 2d3263cfbe
commit 2b85c1cce1

View File

@ -41,7 +41,7 @@ jobs:
df -h
- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v3.2.3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
@ -59,16 +59,16 @@ jobs:
mvn clean package -Drevision="${{ env.PREVIEW_VERSION }}"
- name: Setup docker buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2.2.1
- name: docker hub login
uses: docker/login-action@v1
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: docker test build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3.3.0
with:
context: .
file: Dockerfile
@ -128,16 +128,21 @@ jobs:
push: true
tags: ${{ env.DOCKER_TAGS }}
- name: update github release
id: update_github_release
uses: johnwbyrd/update-release@v1.0.0
- name: create github release
uses: softprops/action-gh-release@v0.1.15
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: nb5/target/nb5 nb5/target/nb5.jar
release: Preview Release ${{ env.PREVIEW_VERSION }}
tag: nb5-${{ env.PREVIEW_VERSION }}
message: preview release ${{ env.PREVIEW_VERSION }}
body: ${{ steps.prepare_summary.outputs.release_summary }}
draft: false
prerelease: true
name: Release ${{ env.PREVIEW_VERSION }}
fail_on_unmatched_files: true
tag: ${{ env.PREVIEW_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
# target_commitish: ${{ env.PREVIEW_VERSION }}
files: |
nb5/target/nb5
nb5/target/nb5.jar
# - name: create github release
# id: create_github_release
@ -172,7 +177,7 @@ jobs:
# asset_path: nb5/target/nb5
# asset_name: nb5
# asset_content_type: application/octet-stream
#
- name: Archive Test Results
if: always()
uses: actions/upload-artifact@v3