diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml
index 565e980..a37bf00 100644
--- a/.github/workflows/beta.yml
+++ b/.github/workflows/beta.yml
@@ -1,4 +1,4 @@
-name: Beta
+name: Release
on:
push:
@@ -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: ${{ 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
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
diff --git a/pom.xml b/pom.xml
index efa442a..bf694ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,8 +10,8 @@
maven-compiler-plugin
2.3.2
-
- 1.8
+
+ 8