Skip to content

Commit

Permalink
Updated auth settings for github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
deternitydx committed Jun 7, 2021
1 parent 8825b79 commit 91e6725
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
34 changes: 34 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">

<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/snac-cooperative/*</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>

<servers>
<server>
<id>github</id>
<username>${env.USERNAME}</username>
<password>${env.PASSWORD}</password>
</server>
</servers>
</settings>


0 comments on commit 91e6725

Please sign in to comment.