Skip to content

Build and download SNAPSHOT #15

Build and download SNAPSHOT

Build and download SNAPSHOT #15

name: Build and download SNAPSHOT
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache
uses: actions/cache@v4
with:
path: |
**/node_modules
~/.gradle/caches
~/.gradle/wrapper
key: 11-node-${{ hashFiles('**/package-lock.json') }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: 11-
- name: Build artifacts
run: ./gradlew clean server:distZip types:build -x types:test -x server:test -x client-html:test
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: onCourseServer-99-SNAPSHOT
path: server/build/distributions/onCourseServer-99-SNAPSHOT.zip
retention-days: 1