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: on:
push: push:
@ -8,9 +8,6 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps: steps:
- name: Checkout branch - name: Checkout branch
@ -22,9 +19,19 @@ jobs:
java-version: 1.8 java-version: 1.8
- name: Build with Maven - 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 - name: Set up a cache for maven
run: mvn -B deploy uses: actions/cache@v2
env: with:
GITHUB_TOKEN: ${{ github.token }} 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: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps: steps:
- name: Checkout branch - name: Checkout branch
@ -22,9 +19,19 @@ jobs:
java-version: 1.8 java-version: 1.8
- name: Build with Maven - 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 - name: Set up a cache for maven
run: mvn -B deploy uses: actions/cache@v2
env: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 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> <artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version> <version>2.3.2</version>
<configuration> <configuration>
<source>1.8</source> <source>8</source>
<target>1.8</target> <target>8</target>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>