blob: 89d50ffcd0709be5dc3cbc46baa4a2fffea701c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
name: Build GitHub Release
# This workflow builds the YaCy Search Server and creates a GitHub Release with the build artifacts.
on:
# TODO: Currently disabled, because I'm not sure if this is the right way to do the release.
# push:
# tags:
# - "v*.*.*"
# - "Release_*"
# pull_request:
workflow_dispatch:
permissions:
contents: write
actions: write
jobs:
build:
strategy:
fail-fast: false
matrix:
#os: [macos-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check-out repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Build
run: ant clean all dist
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }} ${{ runner.arch }} Build
path: RELEASE/*
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
generate_release_notes: true
files: RELEASE/*
|