This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
Release with Maven #14
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: Release with Maven | |
on: | |
push: | |
branches: | |
- release | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 21 | |
- name: Update Maven to 3.9.X | |
run: | | |
# Needed for Tycho 4.X.X and support for JDK 21 | |
wget https://dlcdn.apache.org/maven/maven-3/3.9.7/binaries/apache-maven-3.9.7-bin.tar.gz | |
tar -xvf apache-maven-3.9.7-bin.tar.gz | |
mv apache-maven-3.9.7 /opt/ | |
M2_HOME='/opt/apache-maven-3.9.7' | |
PATH="$M2_HOME/bin:$PATH" | |
export PATH | |
# Overwrite PATH with updated maven install | |
echo $PATH > $GITHUB_PATH | |
echo "=== Check if well installed ===" | |
echo "$ mvn -version" | |
mvn -version | |
- name: Configure Git | |
run: | | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email '[email protected]' | |
- name: Build with Maven | |
run: | | |
mvn deploy -Prelease-composite -Dgithub-update-repo=https://x-access-token:${{ secrets.ACTIONS_TOKEN }}@github.com/project-SIMPLE/gaml.extension.unity | |
working-directory: eu.project-simple.parent | |