Skip to content

Commit

Permalink
Merge branch 'main' of git.ntnu.no:cathrkri/systemutviklingTeam6 into…
Browse files Browse the repository at this point in the history
… 40-mvp-funksjonality-across-sites
  • Loading branch information
AdrianBalunan committed Mar 11, 2026
2 parents d9173e6 + 8522115 commit 417567c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: ci

on:
push:
branches: [main]
branches: [main, develop]
pull_request:
branches: [main]
branches: [main, develop]

jobs:
test:
runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- uses: actions/checkout@v4
Expand All @@ -19,4 +19,5 @@ jobs:
java-version: "25"
cache: maven

- run: mvn -B test
- working-directory: helpmehelpapplication
run: mvn -B test
34 changes: 34 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path

name: Maven Package

on:
release:
types: [created]

jobs:
build:

runs-on: [ self-hosted ]
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Consists of: Cathrine Kristiansen, Adrian Balunan, Roar Fagerkind, Robin Prestmo

- Team number: `6`
- Team members:
- Robin Prestmo - Product Owner
- Robin Strand Prestmo - Product Owner
- Adrian Balunan - Scrum Master
- Cathrine Kristiansen - Archive and Document Responsible
- Roar Fagerkind - Software Quality Responsible
Expand Down

0 comments on commit 417567c

Please sign in to comment.