fuck you hikari #161
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: LaBoulangerieCore continuous delivery | |
on: | |
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 | |
- 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 --global user.name "octocroissant[bot]" | |
git config --global user.email 149737708+octocroissant[bot]@users.noreply.github.com | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
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 |