Skip to content

Commit f41ee9e

Browse files
authored
Merge pull request #479 from cap-java/fix_snapshotDeployment
Updated the workflow file so that it can deploy snapshot on our priva…
2 parents d07377d + c26dc89 commit f41ee9e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/main-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
build:
1414
name: Build
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
1618
strategy:
1719
matrix:
1820
java-version: [ 17 ]
@@ -31,7 +33,7 @@ jobs:
3133
runs-on: ubuntu-latest
3234
needs: [ build ]
3335
permissions:
34-
contents: read
36+
contents: write
3537
packages: write
3638
steps:
3739
- name: Checkout
@@ -98,5 +100,5 @@ jobs:
98100
run: |
99101
mvn -B -ntp -fae -Dmaven.install.skip=true -Dmaven.test.skip=true -DdeployAtEnd=true -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/cap-java/sdm deploy
100102
env:
101-
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
103+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102104
shell: bash

0 commit comments

Comments
 (0)