Skip to content

Commit

Permalink
Update maven-publish.yml
Browse files Browse the repository at this point in the history
need git LFS
  • Loading branch information
dsgrieve authored Aug 6, 2021
1 parent f7feb00 commit 6e1cdf1
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,31 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Configure Git user
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions"
- name: Checkout github repo (+ download lfs dependencies)
uses: actions/checkout@v2
with:
lfs: true

- name: Checkout LFS objects
run: git lfs checkout

- name: Configure Git user
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions"
- name: Prepare the release
run: mvn -B release:prepare -DpushChanges=false --settings $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Prepare the release
run: mvn -B release:prepare -DpushChanges=false --settings $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Perform the release
run: mvn -B release:perform -DlocalCheckout=true -Darguments="-DskipTests -Dmaven.javadoc.skip=true" --settings $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Perform the release
run: mvn -B release:perform -DlocalCheckout=true -Darguments="-DskipTests -Dmaven.javadoc.skip=true" --settings $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Bump pom version
run : git push
- name: Bump pom version
run : git push

- name: Push tags
run: git push --tags
- name: Push tags
run: git push --tags

0 comments on commit 6e1cdf1

Please sign in to comment.