-
Notifications
You must be signed in to change notification settings - Fork 226
68 lines (59 loc) · 1.5 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
name: Release
on:
workflow_dispatch:
inputs:
version:
required: true
type: string
default: 2024.1.0
description: Release tag. Recommended format year.month.version
run-name: Release ${{ inputs.version }}
permissions:
actions: read
contents: write
env:
artifact-name: Orbiter-${{ inputs.version }}.zip
jobs:
build:
name: Build
uses: ./.github/workflows/reusable-build.yml
strategy:
fail-fast: false
matrix:
architecture: [x64, x86]
with:
architecture: ${{ matrix.architecture }}
upload: true
docs: true
package:
name: Package
needs: [build]
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: Orbiter-x86
path: Orbiter-x86
- uses: actions/download-artifact@v4
with:
name: Orbiter-x64
path: Orbiter-x64
- run: |
find .
mv Orbiter-x86/Orbiter.zip Orbiter-x86.zip
mv Orbiter-x64/Orbiter.zip Orbiter-x64.zip
- name: "Create nightly release"
uses: softprops/action-gh-release@v2
with:
body: https://cdn.openorbiter.space/orbiter-releases/Orbiter-${{ inputs.version }}.zip
tag_name: ${{ inputs.version }}
prerelease: false
make_latest: true
target_commitish: ${{ github.sha }}
name: Orbiter ${{ inputs.version }}
files: |
Orbiter-x86.zip
Orbiter-x64.zip