Skip to content

Commit

Permalink
[releng] Update github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Fasani <[email protected]>
  • Loading branch information
lfasani committed Nov 15, 2024
1 parent de45b9a commit 0670894
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 12 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

85 changes: 77 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
46 changes: 46 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">

<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>github-sirius-web</id>
<name>Sirius Web - Maven Packages</name>
<url>https://maven.pkg.github.com/eclipse-sirius/sirius-web</url>
</repository>
<repository>
<id>github-sirius-emfjson</id>
<name>Sirius EMF JSON - Maven Packages</name>
<url>https://maven.pkg.github.com/eclipse-sirius/sirius-emf-json</url>
</repository>
</repositories>
</profile>
</profiles>

<servers>
<server>
<id>github-sirius-web</id>
<username>${env.USERNAME}</username>
<password>${env.PASSWORD}</password>
</server>
<server>
<id>github-sirius-emfjson</id>
<username>${env.USERNAME}</username>
<password>${env.PASSWORD}</password>
</server>
</servers>
</settings>

0 comments on commit 0670894

Please sign in to comment.