Skip to content

Commit

Permalink
Replace public token with one-time token (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Becker <[email protected]>
  • Loading branch information
sbckr authored May 5, 2022
1 parent ecda08f commit a9a3b3b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build-test-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
#
# SPDX-License-Identifier: Apache-2.0
#
name: Artifacts
on: push
name: Build and test artifacts
on:
workflow_dispatch:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
prepare:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -35,8 +42,8 @@ jobs:
servers: |
[{
"id": "github",
"username": "${{ secrets.GHPR_USERNAME }}",
"password": "${{ secrets.GHPR_TOKEN }}"
"username": "${{ github.actor }}",
"password": "${{ secrets.GITHUB_TOKEN }}"
}]
- name: Build with Maven
run: mvn install -Dskip.tests --batch-mode --update-snapshots --no-transfer-progress
Expand All @@ -60,8 +67,8 @@ jobs:
servers: |
[{
"id": "github",
"username": "${{ secrets.GHPR_USERNAME }}",
"password": "${{ secrets.GHPR_TOKEN }}"
"username": "${{ github.actor }}",
"password": "${{ secrets.GITHUB_TOKEN }}"
}]
- name: Run Tests
run: mvn verify --activate-profiles coverage --batch-mode --no-transfer-progress
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
name: Publish and release
on:
workflow_run:
workflows: [ "Artifacts" ]
workflows: ["Build and test artifacts"]
branches:
- master
types:
Expand Down

0 comments on commit a9a3b3b

Please sign in to comment.