-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
79 lines (65 loc) · 2.17 KB
/
.drone.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
75
76
77
## Links
## http://plugins.drone.io/drone-plugins/drone-github-release/
kind: pipeline
name: default
workspace:
base: /build
# path: src/github.com/yourname/go-drone-hello-world
steps:
- name: clean-folder
image: ubuntu:xenial
commands:
- pwd
- mkdir -p /build/dist
- ls -sh /build/dist
- name: build-appimage
image: ubuntu:bionic
commands:
- export DEBIAN_FRONTEND=noninteractive
- cd obs-studio/scripts
- apt-get update
- apt-get -qqy install git sudo libfuse-dev ccache apt-transport-https ca-certificates wget curl software-properties-common
- git clone --recursive https://github.com/obsproject/obs-studio.git
- rm -rf obs-studio/CI
- chmod +x CI/*.sh
- cp -aR CI obs-studio/
- chmod +x obs-studio/CI/*.sh
- cd obs-studio
- ./CI/install-ffmpeg-linux.sh
- ./CI/install-dependencies-linux.sh
- ./CI/before-script-linux.sh
- ./CI/script-linux-appimage.sh
- cp build/obs-studio-plus-*.AppImage /build/dist/
- cp codecs_ffmpeg/ffmpeg/*.deb /build/dist/
- ls -sh /build/dist
- name: build-bionic
image: ubuntu:bionic
commands:
- export DEBIAN_FRONTEND=noninteractive
- cd obs-studio/scripts
- bash NVENC-FFMPEG-OBSbuild.sh --dest /opt/ffmpeg-obs
- mv /root/dist/*.deb /build/dist/
- ls -sh /build/dist
- name: build-eoan
image: ubuntu:eoan
commands:
- export DEBIAN_FRONTEND=noninteractive
- cd obs-studio/scripts
- bash NVENC-FFMPEG-OBSbuild.sh --dest /opt/ffmpeg-obs
- mv /root/dist/*.deb /build/dist/
- ls -sh /build/dist
- name: publish-on-github
image: node:10-jessie
environment:
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
RELEASE:
from_secret: RELEASE
RELEASE_MSG:
from_secret: RELEASE_MSG
envs: [ GITHUB_TOKEN, RELEASE, RELEASE_MSG ]
commands:
- ls -sh /build/dist
- npm install -g github-release-cli
- github-release delete --owner jniltinho --repo packages --tag=$RELEASE
- github-release upload --owner jniltinho --repo packages --tag=$RELEASE --name=$RELEASE --body "$RELEASE_MSG" /build/dist/*