File tree 3 files changed +21
-38
lines changed
3 files changed +21
-38
lines changed Original file line number Diff line number Diff line change 1
1
name : ' Delete Package Version'
2
- description : ' Delete a specific package version'
2
+ description : ' Delete aspecific package version'
3
3
inputs :
4
4
name :
5
5
description : ' Name of package to delete'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 19
19
version : 1.0.0-SNAPSHOT
20
20
owner : ${{ github.repository_owner }}
21
21
token : ${{ secrets.WORKFLOW_TOKEN }}
22
- - name : Perform Maven Deploy
23
- uses : ./.github/ actions/perform-maven-deploy
22
+ - name : Set up Java
23
+ uses : actions/setup-java@v1
24
24
with :
25
- owner : ${{ github.repository_owner }}
26
- token : ${{ secrets.WORKFLOW_TOKEN }}
27
- internalRepoURL : " https://maven.pkg.github.com/rajivmb/p13i-mvn-repo"
25
+ java-version : 11
26
+ - name : Cache Maven artifacts
27
+ uses : actions/cache@v2
28
+ env :
29
+ cache-name : m2-cache
30
+ with :
31
+ path : ~/.m2/repository
32
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
33
+ restore-keys : |
34
+ ${{ runner.os }}-build-${{ env.cache-name }}-
35
+ ${{ runner.os }}-build-
36
+ ${{ runner.os }}-
37
+ - name : Publish package
38
+ run : mvn deploy -s settings.xml -Drepo.id=internal.repo -Drepo.username=${{ github.repository_owner }} -Drepo.token=$WORKFLOW_TOKEN -Dinternal.repo.url=$INTERNAL_REPO_URL -DaltDeploymentRepository=internal.repo::default::$INTERNAL_REPO_URL
39
+ env :
40
+ INTERNAL_REPO_URL : " https://maven.pkg.github.com/rajivmb/p13i-mvn-repo"
41
+ # GITHUB_USERNAME: ${{ secrets.WORKFLOW_USERNAME }}
42
+ WORKFLOW_TOKEN : ${{ secrets.WORKFLOW_TOKEN }}
You can’t perform that action at this time.
0 commit comments