From 268d6bf8ec60e81dcfd8d1f2079ad54625141f7f Mon Sep 17 00:00:00 2001 From: Jorge Aquino Sanchez <67315354+JAs2701@users.noreply.github.com> Date: Fri, 21 Apr 2023 11:52:36 +0200 Subject: [PATCH] Actions of deploy shacl play --- .github/workflows/Build_ShaclPlay.yml | 29 ++++++++++++++++----------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/Build_ShaclPlay.yml b/.github/workflows/Build_ShaclPlay.yml index f2f370ba..b5e37ac5 100644 --- a/.github/workflows/Build_ShaclPlay.yml +++ b/.github/workflows/Build_ShaclPlay.yml @@ -5,8 +5,8 @@ on: #push: # branches: [ "master" ] - #pull_request: - # branches: [ "master" ] + pull_request: + branches: [ "actions_shaclplay" ] jobs: Build_Maven: @@ -30,22 +30,22 @@ jobs: server-username: ${{ github.ACTOR }} server-password: ${{ github.token }} settings-path: ${{ github.workspace }} # location for the settings.xml file - + + - run: | + echo "setting File : " ${{ github.workspace }}/settings.xml # This step generate a war file - name: Build with Maven run: mvn -B package --file pom.xml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Publish - name: Publish to Github Package Apache Maven run: | - mvn deploy -s settings.xml + mvn -e -X deploy -s settings.xml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - - name: Display structure of downloaded files run: ls -R @@ -64,11 +64,16 @@ jobs: with: java-version: '11' distribution: 'temurin' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - server-username: ${{ github.ACTOR }} - server-password: ${{ github.token }} - settings-path: ${{ github.workspace }} # location for the settings.xml file - + + - name: Run the Maven verify phase + run: mvn --batch-mode --update-snapshots verify + + - name: Publish to GitHub Packages Apache Maven + run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + #- name: Create GitHub Release # uses: actions/create-release@v1