From d69dcb7de91acedd96753a76cb2356bf1f451a86 Mon Sep 17 00:00:00 2001 From: Elijah Melton Date: Sun, 3 Nov 2024 14:36:57 -0800 Subject: [PATCH] added workflow --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/test.yml | 0 pom.xml | 1 + 3 files changed, 31 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..9d6aa1f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +name: Publish package to GitHub Packages + +on: + release: + types: [created] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Publish package + run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e69de29 diff --git a/pom.xml b/pom.xml index a8b94e0..4230d51 100644 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,7 @@ + ${project.version} UTF-8 11 11