-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a0a783
commit bcc1c94
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -16,11 +17,12 @@ jobs: | |
with: | ||
path: ~/.m2 | ||
key: ${{ github.repository }}-build-${{ env.cache-name }}-${{ hashFiles('pom.xml') }} | ||
- name: JDk 1.17 setup | ||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.17 | ||
- uses: s4u/[email protected] | ||
- name: Setup maven settings.xml | ||
uses: s4u/[email protected] | ||
with: | ||
servers: | | ||
[{ | ||
|
@@ -45,9 +47,9 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ci" | ||
git clone https://ci:${{ secrets.GH_TOKEN }}@git.laboulangerie.net/ci/plugins.git | ||
git clone https://ci:${{ secrets.PAT_TOKEN }}@github.com/PainOchoco/Server.git | ||
cp LaBoulangerieAPI-jar-with-dependencies.jar plugins/LaBoulangerieAPI.jar | ||
cd plugins/ | ||
git add . | ||
git commit -m "workflow $GITHUB_RUN_ID from $GITHUB_REPOSITORY" | ||
git push https://ci:${{ secrets.GH_TOKEN }}@git.laboulangerie.net/ci/plugins.git HEAD:master | ||
git push |