-
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.
Merge pull request #50 from statisticsnorway/release-tester
Install Maven manually
- Loading branch information
Showing
1 changed file
with
19 additions
and
7 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 |
---|---|---|
|
@@ -20,14 +20,26 @@ jobs: | |
app-id: ${{ secrets.DAPLA_BOT_APP_ID }} | ||
private-key: ${{ secrets.DAPLA_BOT_PRIVATE_KEY }} | ||
|
||
- name: Setup Maven Action # Composite action | ||
uses: s4u/[email protected] | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ steps.app-token.outputs.token }} | ||
ref: refs/heads/master | ||
|
||
- name: Install Maven | ||
run: | | ||
MAVEN_VERSION=3.9.9 | ||
wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | ||
tar xzvf apache-maven-$MAVEN_VERSION-bin.tar.gz | ||
sudo mv apache-maven-$MAVEN_VERSION /opt/maven | ||
sudo rm -f /usr/bin/mvn # Remove existing symbolic link if it exists | ||
sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn # Create new symbolic link | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
checkout-token: ${{ steps.app-token.outputs.token }} | ||
checkout-ref: refs/heads/master | ||
java-version: 21 | ||
java-distribution: zulu | ||
maven-version: 3.9.9 | ||
distribution: zulu | ||
server-id: github | ||
|
||
- name: Authenticate to Google Cloud | ||
id: auth | ||
|
@@ -94,4 +106,4 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | ||
with: | ||
release_id: ${{ steps.create_github_release.outputs.id }} | ||
release_id: ${{ steps.create_github_release.outputs.id }} |