Used EN for messages + move miss placed message #178
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: LaBoulangerieMmo continuous delivery | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'README.md' | |
- '.gitignore' | |
- '.github/workflows/maven-publish.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: JDk 1.17 setup | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.17 | |
- uses: actions/cache@v3 | |
env: | |
cache-name: cache-gradle | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ env.cache-name }}-${{ hashFiles('*.gradle.kts', '**/gradle-wrapper.properties') }} | |
- name: Gradle Build Action | |
uses: gradle/[email protected] | |
with: | |
gradle-version: "7.4.1" | |
arguments: assemble | |
- name: Clean build outputs | |
run: rm build/libs/LaBoulangerieMmo-*dev*.jar | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: laboulangeriemmo | |
path: build/libs/ | |
deploy: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/download-artifact@v2 | |
with: | |
name: laboulangeriemmo | |
- name: Clone Plugins Project | |
run: | | |
git config --global user.email "${{ secrets.GH_EMAIL }}" | |
git config --global user.name "${{ secrets.GH_USER }}" | |
git clone https://${{ secrets.GH_USER }}:${{ secrets.GH_TOKEN }}@github.com/LaBoulangerie/Plugins.git | |
mv *.jar LaBoulangerieMmo.jar | |
cp **.jar Plugins/ | |
cd Plugins/ | |
git add . | |
git commit -m "workflow $GITHUB_RUN_ID from $GITHUB_REPOSITORY" | |
git push https://${{ secrets.GH_USER }}:${{ secrets.GH_TOKEN }}@github.com/LaBoulangerie/Plugins.git HEAD:master |