Skip to content

Commit

Permalink
Merge pull request #50 from statisticsnorway/release-tester
Browse files Browse the repository at this point in the history
Install Maven manually
  • Loading branch information
mallport authored Oct 2, 2024
2 parents c98aaa3 + a89816a commit 2fbd6b9
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 2fbd6b9

Please sign in to comment.