From 06708943f668abcc446e0f2cc969a6754846fad8 Mon Sep 17 00:00:00 2001 From: Laurent Fasani Date: Thu, 14 Nov 2024 18:17:01 +0100 Subject: [PATCH] [releng] Update github workflow Signed-off-by: Laurent Fasani --- .github/workflows/build.yml | 7 ++- .gitignore | 85 +++++++++++++++++++++++++++++++++---- settings.xml | 46 ++++++++++++++++++++ 3 files changed, 126 insertions(+), 12 deletions(-) create mode 100644 settings.xml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a896e7..8120d9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,14 +49,13 @@ jobs: - name: Build the backend env: USERNAME: ${{ github.actor }} - PASSWORD: ${{ secrets.PASSWORD }} + PASSWORD: ${{ github.token }} run: mvn -U -B -e clean verify -f backend/pom.xml --settings settings.xml - name: Publish the backend if: startsWith(github.ref, 'refs/tags/v') env: USERNAME: ${{ github.actor }} - PASSWORD: ${{ secrets.GITHUB_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PASSWORD: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} run: mvn -B deploy -DskipTests --settings settings.xml - diff --git a/.gitignore b/.gitignore index 524f096..f862158 100644 --- a/.gitignore +++ b/.gitignore @@ -1,24 +1,93 @@ +### General ### +.~lock*# +yalc.lock +.yalc + + +### macOS ### +.DS_Store +._* + + +### Windows ### +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +### Eclipse ### +# m2e +.factorypath + +### Java ### # Compiled class file *.class +bin +bin/ +target +target/ +pom.xml.versionsBackup # Log file *.log -# BlueJ files -*.ctxt - -# Mobile Tools for Java (J2ME) -.mtj.tmp/ - # Package Files # *.jar *.war *.nar *.ear -*.zip *.tar.gz *.rar # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* -replay_pid* + + +### Node ### +# Logs +logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Dependency directories +node_modules/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache +.attach_pid* + +# Turborepo +.turbo +dist/ +coverage/ + +# IntelliJ IDEA +.idea +*.iws +*.iml +*.ipr + +# ANTLR +.antlr \ No newline at end of file diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..c8bc4f9 --- /dev/null +++ b/settings.xml @@ -0,0 +1,46 @@ + + + + github + + + + + github + + + central + https://repo1.maven.org/maven2 + true + true + + + github-sirius-web + Sirius Web - Maven Packages + https://maven.pkg.github.com/eclipse-sirius/sirius-web + + + github-sirius-emfjson + Sirius EMF JSON - Maven Packages + https://maven.pkg.github.com/eclipse-sirius/sirius-emf-json + + + + + + + + github-sirius-web + ${env.USERNAME} + ${env.PASSWORD} + + + github-sirius-emfjson + ${env.USERNAME} + ${env.PASSWORD} + + + \ No newline at end of file