Skip to content

Merge branch 'master' into develop #54

Merge branch 'master' into develop

Merge branch 'master' into develop #54

Workflow file for this run

name: Build Image
on:
push:
branches: [ 'master' ]
tags: [ '*' ]
jobs:
build-and-deploy-server:
if: "startsWith(github.ref, 'refs/tags/')" # Deploy a new server version when a new tag is pushed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- run: git lfs checkout
- uses: actions/setup-java@v4
with:
java-version: '23'
distribution: temurin
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x.x
- uses: gradle/actions/wrapper-validation@v3
- name: Test with Gradle
run: ./gradlew --no-parallel test
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Server Image
run: ./gradlew spellsource-server:githubDockerPush
build-and-deploy-website:
if: "!startsWith(github.ref, 'refs/tags/')" # Deploy a new website version for each push to master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true # TODO still needed just for website?
- run: git lfs checkout
- uses: actions/setup-java@v4
with:
java-version: '23'
distribution: temurin
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: gradle/actions/wrapper-validation@v3
- name: Test with Gradle
run: ./gradlew --no-parallel :spellsource-web:yarnRunTest
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Website Image
run: ./gradlew spellsource-web:githubDockerPush