Skip to content

Commit

Permalink
Use a USER_TOKEN instead of an anonymous GITHUB token; bump version f…
Browse files Browse the repository at this point in the history
…or core-metadata on release
  • Loading branch information
proksch committed Sep 8, 2023
1 parent d4428b8 commit b99abed
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,20 @@ jobs:
with:
servers: >
[
{ "id": "github-cops", "username": "${{ github.actor }}", "password": "${ env.GITHUB_TOKEN }" }
{ "id": "github-cops", "username": "${{ github.actor }}", "password": "${env.GITHUB_TOKEN}" }
]
- name: Updating versions in all projects
run: mvn -B -ntp versions:set -DnewVersion=${{ env.version }}
run: |
mvn -B -ntp versions:set -DnewVersion=${{ env.version }}
cd core-metadata
mvn -B -ntp versions:set -DnewVersion=${{ env.version }}
- name: Deploy Maven packages
run: mvn -B -ntp clean deploy
env:
# auth necessary to access GitHub Maven registries
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.FASTEN_TOKEN }}

- name: Registry Login (ghcr.io)
run: echo "${{ github.token }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
Expand Down Expand Up @@ -73,4 +76,4 @@ jobs:
docker push --all-tags $IMG
env:
# auth necessary to access GitHub Maven registries
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.FASTEN_TOKEN }}

0 comments on commit b99abed

Please sign in to comment.