Skip to content

Commit

Permalink
Updating workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Jul 9, 2024
1 parent afae395 commit 2aa0f8e
Showing 1 changed file with 23 additions and 29 deletions.
52 changes: 23 additions & 29 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,26 @@ jobs:
with:
lfs: true
ref: ${{ github.event.inputs.phileas_tag }}
# - name: Cache Maven packages
# uses: actions/cache@v1
# with:
# path: ~/.m2
# key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
# restore-keys: ${{ runner.os }}-m2
# - name: Set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: 17
# distribution: adopt
# architecture: x64
# cache: maven
# - name: Build and Deploy
# run: mvn --batch-mode --update-snapshots deploy
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/delete-package-versions@v5
with:
package-name: "com.mtnfog.phileas"
package-type: "maven"
min-versions-to-keep: 2
delete-only-pre-release-versions: false
- uses: actions/delete-package-versions@v5
with:
package-name: "com.mtnfog.owner"
package-type: "maven"
min-versions-to-keep: 2
delete-only-pre-release-versions: false
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: adopt
architecture: x64
cache: maven
- name: Build and Deploy
run: mvn --batch-mode --update-snapshots deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions/delete-package-versions@v5
# with:
# package-name: "com.mtnfog.phileas"
# package-type: "maven"
# min-versions-to-keep: 2
# delete-only-pre-release-versions: false

0 comments on commit 2aa0f8e

Please sign in to comment.