Skip to content

Commit

Permalink
Upload files to artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
NotActuallyTerry committed Aug 16, 2023
1 parent 18edbef commit 4fcaf88
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 24 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Push & Pull Request CI

on:
push:
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'

- name: Build with Maven
run: mvn -B package

- name: Locate built JARfile
id: jar
run: echo "jarfile=$(find build/libs/ -name "keycloak-discord-*.jar" -not -name "*slim*" -not -name "*source*")" >> $GITHUB_OUTPUT

- name: Set Artifact name
id: jarname
run: echo "jarname=$(find build/libs/ -name "keycloak-discord-*.jar" -not -name "*slim*" -not -name "*source*" | sed 's:.*/::')" >> $GITHUB_OUTPUT

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ steps.jarname.outputs.jarname }}
path: ${{ steps.jar.outputs.jarfile }}
24 changes: 0 additions & 24 deletions .github/workflows/pull_request.yml

This file was deleted.

0 comments on commit 4fcaf88

Please sign in to comment.