forked from OpenTabletDriver/OpenTabletDriver
-
Notifications
You must be signed in to change notification settings - Fork 1
117 lines (108 loc) · 3.71 KB
/
release.yml
File metadata and controls
117 lines (108 loc) · 3.71 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Release
on:
workflow_dispatch:
inputs:
version_suffix:
description: 'The version suffix for this manual build.'
required: false
release:
types: [ published ]
jobs:
unix:
runs-on: ubuntu-latest
name: Unix Release
env:
VERSION_SUFFIX: ${{ github.event.inputs.version_suffix }}
steps:
- name: Checkout Packaging Repository
uses: actions/checkout@v2
with:
repository: 'OpenTabletDriver/OpenTabletDriver.Packaging'
- name: Checkout OpenTabletDriver Repository
uses: actions/checkout@v2
with:
repository: 'OpenTabletDriver/OpenTabletDriver'
path: 'src/OpenTabletDriver'
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
include-prerelease: True
- name: Debian Build
run: ./Debian/package
- name: RPM Build
run: ./Redhat/package
- name: Generic Linux Build
run: ./Linux/package
- name: MacOS Build
run: ./MacOS/package
- name: Upload all assets (Release)
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./Debian/OpenTabletDriver.deb
./Redhat/OpenTabletDriver.rpm
./Linux/OpenTabletDriver.linux-x64.tar.gz
./MacOS/OpenTabletDriver.osx-x64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Debian asset (Dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@master
with:
name: OpenTabletDriver.deb
path: ./Debian/OpenTabletDriver.deb
- name: Upload RPM asset (Dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@master
with:
name: OpenTabletDriver.rpm
path: ./Redhat/OpenTabletDriver.rpm
- name: Upload generic Linux asset (Dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@master
with:
name: OpenTabletDriver.linux-x64.tar.gz
path: ./Linux/OpenTabletDriver.linux-x64.tar.gz
- name: Upload macOS asset (Dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@master
with:
name: OpenTabletDriver.osx-x64.tar.gz
path: ./MacOS/OpenTabletDriver.osx-x64.tar.gz
windows:
runs-on: windows-latest
name: Windows Release
env:
VERSION_SUFFIX: ${{ github.event.inputs.version_suffix }}
steps:
- name: Checkout Packaging Repository
uses: actions/checkout@v2
with:
repository: 'OpenTabletDriver/OpenTabletDriver.Packaging'
- name: Checkout OpenTabletDriver Repository
uses: actions/checkout@v2
with:
repository: 'OpenTabletDriver/OpenTabletDriver'
path: 'src/OpenTabletDriver'
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
include-prerelease: True
- name: Package
run: ./Windows/package.ps1
- name: Upload Windows asset (Release)
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./Windows/OpenTabletDriver.win-x64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Windows asset (Dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@master
with:
name: OpenTabletDriver.win-x64.zip
path: ./Windows/OpenTabletDriver.win-x64.zip