Skip to content

Commit

Permalink
Add GitHub Actions flow to assist with manual deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
hprange committed Oct 2, 2021
1 parent 285f424 commit 23f9ba0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Manual Deploy
on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout wolifecycle-maven-plugin source code
uses: actions/checkout@v2

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Deploy snapshots with Maven
run: mvn -B deploy --file pom.xml -s .maven-settings.xml -DretryFailedDeploymentCount=10
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}

0 comments on commit 23f9ba0

Please sign in to comment.