Skip to content

Add eclipse formatter file #31

Add eclipse formatter file

Add eclipse formatter file #31

Workflow file for this run

name: TownyChatRemake continuous delivery
on:
push:
branches:
- main
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
- name: Maven build
run: mvn clean package
- uses: actions/upload-artifact@v1
with:
name: townychatremake
path: target
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/download-artifact@v2
with:
name: townychatremake
- 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 }}@git.laboulangerie.net/ci/plugins.git
cp [!original-]**.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 }}@git.laboulangerie.net/ci/plugins.git HEAD:master