Update maven.yml

This commit is contained in:
Ryder Belserion 2022-06-10 23:55:08 -04:00 committed by GitHub
parent 23d8e0d808
commit aa67ec5555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,19 +12,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
publish-job:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
@ -32,8 +19,31 @@ jobs:
java-version: '11'
distribution: 'temurin'
- run: mvn -B package --file pom.xml -DskipTests
- run: mkdir staging && cp target/*.jar staging
- run: mkdir staging && cp target/*.jar Crazy-Auctions
- uses: actions/upload-artifact@v1
with:
name: Package
name: Crazy-Auctions
path: staging
create-release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # need this for all history for all branches and tags
- name: Create Release
id: create_release
uses: nickatnight/releases-action@v3
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
ReleaseTag: ${{ steps.create_release.outputs.release_tag }}
# pass in as env variable
explore-essos:
runs-on: ubuntu-latest
needs: [create-release]
env:
RELEASE_TAG: ${{ needs.create-release.outputs.ReleaseTag }}