summaryrefslogtreewikicommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml23
1 files changed, 15 insertions, 8 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d06e8ac..b601a73 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -8,9 +8,6 @@ jobs:
build:
runs-on: ubuntu-latest
- permissions:
- contents: read
- packages: write
steps:
- name: Checkout branch
@@ -22,9 +19,19 @@ jobs:
java-version: 1.8
- name: Build with Maven
- run: mvn -B package --file pom.xml
+ run:
+ mvn -B package --file pom.xml
+ mkdir staging && cp target/*.jar staging
- - name: Publish to GitHub Packages Apache Maven
- run: mvn -B deploy
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Set up a cache for maven
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+
+ - name: Upload artificats
+ uses: actions/upload-artifact@v2
+ with:
+ name: github-actions-artifact
+ path: staging