From ed3d73e90f66108377977c290438a8f107502251 Mon Sep 17 00:00:00 2001 From: Matteo Planchet Date: Sun, 12 Nov 2023 14:32:42 +0100 Subject: [PATCH] Update workflow username --- .github/workflows/maven.yml | 98 ++++++++++++++++++------------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e1bbb5b..3d6427e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,53 +1,53 @@ name: LaBoulangerieCore continuous delivery on: - push: - branches: - - master + push: + branches: + - master jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Cache m2 repository - uses: actions/cache@v2 - env: - cache-name: cache-m2-repository - with: - path: ~/.m2 - key: ${{ github.repository }}-build-${{ env.cache-name }}-${{ hashFiles('pom.xml') }} - - name: JDk 1.17 setup - uses: actions/setup-java@v1 - with: - java-version: 1.17 - - uses: s4u/maven-settings-action@v2.3.0 - with: - servers: | - [{ - "id": "laboulangeriemmo", - "username": "${{ secrets.GH_EMAIL }}", - "password": "${{ secrets.GH_READ_PACKAGES }}" - }] - - name: Maven build - run: mvn clean package - - uses: actions/upload-artifact@v1 - with: - name: laboulangeriecore - path: target - deploy: - runs-on: ubuntu-latest - needs: [build] - steps: - - uses: actions/download-artifact@v2 - with: - name: laboulangeriecore - - name: Clone Plugins Project - run: | - git config user.name "octocroissant[bot]" - git config user.email 149737708+octocroissant[bot]@users.noreply.github.com - git clone https://ci:${{ secrets.PAT_TOKEN }}@github.com/LaBoulangerie/Server.git - cp [!original-]**.jar Server/plugins/ - cd Server - git add . - git commit -m "Update artifact from $GITHUB_REPOSITORY" - git push \ No newline at end of file + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Cache m2 repository + uses: actions/cache@v2 + env: + cache-name: cache-m2-repository + with: + path: ~/.m2 + key: ${{ github.repository }}-build-${{ env.cache-name }}-${{ hashFiles('pom.xml') }} + - name: JDk 1.17 setup + uses: actions/setup-java@v1 + with: + java-version: 1.17 + - uses: s4u/maven-settings-action@v2.3.0 + with: + servers: | + [{ + "id": "laboulangeriemmo", + "username": "${{ secrets.GH_EMAIL }}", + "password": "${{ secrets.GH_READ_PACKAGES }}" + }] + - name: Maven build + run: mvn clean package + - uses: actions/upload-artifact@v1 + with: + name: laboulangeriecore + path: target + deploy: + runs-on: ubuntu-latest + needs: [build] + steps: + - uses: actions/download-artifact@v2 + with: + name: laboulangeriecore + - name: Clone Plugins Project + run: | + git config user.name "octocroissant[bot]" + git config user.email 149737708+octocroissant[bot]@users.noreply.github.com + git clone https://octocroissant[bot]:${{ secrets.PAT_TOKEN }}@github.com/LaBoulangerie/Server.git + cp [!original-]**.jar Server/plugins/ + cd Server + git add . + git commit -m "Update artifact from $GITHUB_REPOSITORY" + git push