Skip to content

Commit

Permalink
Rydder i token bruk (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsladek authored Apr 13, 2022
1 parent 52cd7f5 commit c5de783
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ jobs:
run: |
echo "Verifying"
mvn verify -e -B -s settings.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ jobs:
shell: bash
run: |
mvn verify -e -B -s settings.xml -DtrimStackTrace=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Drafter
uses: release-drafter/release-drafter@v5
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ jobs:
uses: whelk-io/maven-settings-xml-action@v20
with:
repositories: '[{ "id": "github", "name": "github", "url": "https://maven.pkg.github.com/${{ github.repository }}", "releases": { "enabled": "true" }, "snapshots": { "enabled": "false" } }]'
servers: '[{ "id": "github", "username": "${{ github.actor }}", "password": "${{ secrets.READER_TOKEN }}" }]'
servers: '[{ "id": "github", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
output_file: settings.xml

- name: Publish artifact
env:
NEW_VERSION: ${{ github.event.release.tag_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn -B -s settings.xml versions:set -DnewVersion=${NEW_VERSION}
mvn -B -s settings.xml clean deploy
2 changes: 0 additions & 2 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ jobs:
--configuration-attributes=usage:java-runtime
--remote-repo-url=https://github.com/${{ github.repository }}.git
-- -s settings.xml
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 comments on commit c5de783

Please sign in to comment.