mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-25 12:25:20 +01:00
Update maven.yml
This commit is contained in:
parent
23d8e0d808
commit
aa67ec5555
40
.github/workflows/maven.yml
vendored
40
.github/workflows/maven.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user