From 91e672572ce32bb9378a5f8a811b113f4271cea7 Mon Sep 17 00:00:00 2001 From: Robbie Hott Date: Mon, 7 Jun 2021 16:16:54 -0400 Subject: [PATCH] Updated auth settings for github packages --- .github/workflows/release.yaml | 5 ++++- settings.xml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 settings.xml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2aa8072..6db3a45 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,7 +23,10 @@ jobs: java-version: '11' distribution: 'adopt' - name: Package Extension - run: mvn -B package + env: + USERNAME: ${{ github.actor }} + PASSWORD: ${{ secrets.GITHUB_TOKEN }} + run: mvn -B package --settings settings.xml - name: Create Release uses: actions/create-release@v1 id: create_release diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..6b090ed --- /dev/null +++ b/settings.xml @@ -0,0 +1,34 @@ + + + + github + + + + + github + + + github + https://maven.pkg.github.com/snac-cooperative/* + + true + + + + + + + + + github + ${env.USERNAME} + ${env.PASSWORD} + + + + +