-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (63 loc) · 2.3 KB
/
release.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Release
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch'
required: true
type: string
default: 'master'
version:
description: 'Version'
required: true
type: string
default: 'X.Y{.Z}'
jobs:
build_linux:
uses: ./.github/workflows/build_linux.yml
with:
branch: ${{ github.event.inputs.branch }}
releaseVersion: ${{ github.event.inputs.version }}
buildVersion: ${{ github.event.inputs.version }}
artifactArchive: archives-linux
build_windows:
uses: ./.github/workflows/build_windows.yml
with:
branch: ${{ github.event.inputs.branch }}
releaseVersion: ${{ github.event.inputs.version }}
buildVersion: ${{ github.event.inputs.version }}
artifactArchive: archives-windows
upload:
needs: [build_linux, build_windows]
runs-on: ubuntu-20.04
steps:
- name: Get Linux Archives
uses: actions/[email protected]
with:
name: archives-linux
- name: Get Windows Archives
uses: actions/[email protected]
with:
name: archives-windows
- name: Upload Artifacts
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: false
artifactErrorsFailBuild: true
draft: false
prerelease: false
commit: ${{ github.event.inputs.branch }}
tag: 'v${{ github.event.inputs.version }}'
name: 'DragonScript Release ${{ github.event.inputs.version }}'
body: |
${{ github.event.inputs.version }} release of the DragonScript Scripting Language.
Contains SDK for developers and Application files for End-Users usage.
See https://developer.dragondreams.ch/wiki/doku.php/dragengine:modules:dragonscript:main for information.
See https://developer.dragondreams.ch/wiki/doku.php/dragengine:modules:dragonscript:api for documentation.
artifacts: >
libdscript-${{ github.event.inputs.version }}-linux64.tar.bz2,
libdscript-sdk-${{ github.event.inputs.version }}-windows64.zip
build_doc:
needs: [upload]
uses: ./.github/workflows/build_ghpages.yml