mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-07 19:28:11 +01:00
Fix github release workflow
This commit is contained in:
parent
217ae74ed0
commit
fb3c94d17d
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -1,7 +1,7 @@
|
||||
# This workflow will run every time a new release is created.
|
||||
# It will first build the plugin using Maven, then publish it to GitHub packages and finally attach the artifacts to the release
|
||||
|
||||
name: Maven Package
|
||||
name: Maven build and deploy on release
|
||||
|
||||
on:
|
||||
release:
|
||||
@ -25,24 +25,23 @@ jobs:
|
||||
|
||||
- name: Build with Maven
|
||||
run: |
|
||||
mvn -B install package --file pom.xml -P ExcludeBadRabbit
|
||||
mvn -B install package --file pom.xml
|
||||
cp Minepacks/target/M*.jar artifacts/
|
||||
|
||||
# Does not work reliable
|
||||
# - name: Publish to GitHub Packages Apache Maven
|
||||
# run: 'mvn deploy -s $GITHUB_WORKSPACE/settings.xml "-DaltDeploymentRepository=github::default::https://maven.pkg.github.com/GeorgH93/Minepacks"'
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ github.token }}
|
||||
- name: Publish to GitHub Packages Apache Maven
|
||||
run: 'mvn deploy -pl Minepacks-API,Minepacks -s $GITHUB_WORKSPACE/settings.xml "-DaltDeploymentRepository=github::default::https://maven.pkg.github.com/GeorgH93/Minepacks"'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Build with Maven (Standalone)
|
||||
run: |
|
||||
mvn -B clean install package --file pom.xml -P Standalone,ExcludeBadRabbit
|
||||
mv Minepacks/target/M*.jar artifacts/
|
||||
mv Minepacks/target/M*-Standalone.jar artifacts/
|
||||
|
||||
- name: Build with Maven (Release)
|
||||
run: |
|
||||
mvn -B package --file pom.xml -P Release
|
||||
mv Minepacks/target/M*.jar artifacts/
|
||||
mvn -B clean package --file pom.xml -P Release
|
||||
mv Minepacks/target/M*-Release.jar artifacts/
|
||||
|
||||
- name: Upload the artifacts
|
||||
uses: skx/github-action-publish-binaries@master
|
||||
|
Loading…
Reference in New Issue
Block a user