forked from shaka-project/shaka-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.28 KB
/
github-nightly.yaml
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
# Copyright 2023 Pluto TV
# Copyright 2022 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
name: GitHub Nightly Build
on:
push:
branches: [ feature/TRANS-4831-nighty-builds ]
workflow_dispatch:
env:
DEVELOPMENT_BRANCH: "pluto-cmake"
jobs:
draft_release:
name: Create GitHub Nightly draft release
needs: setup
runs-on: ubuntu-latest
outputs:
release_id: ${{ steps.draft_release.outputs.id }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: $DEVELOPMENT_BRANCH
- name: Draft release
id: draft_release
uses: ncipollo/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.BUILD_TOKEN_EPHEMERAL}}
with:
tag: ${{ needs.setup.outputs.tag }}
name: "Nightly Build"
draft: true
body: "Latest build of the development branch"
lint:
needs: setup
name: Lint
uses: ./.github/workflows/lint.yaml
with:
ref: $DEVELOPMENT_BRANCH
build_and_test:
needs: [setup, lint, draft_release]
name: Build and test
uses: ./.github/workflows/build.yaml
with:
ref: $DEVELOPMENT_BRANCH