switch to artifacts

This commit is contained in:
Tyler Murphy 2021-12-20 19:24:24 -05:00
parent 092540d277
commit 0a9f1fb4d0
3 changed files with 33 additions and 19 deletions

View file

@ -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

View file

@ -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

View file

@ -10,8 +10,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>