forked from bokeh/bokeh
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 2 KB
/
bokeh-release-build.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
name: Release - Build
run-name: Release - Build ${{ github.event.inputs.version }}
on:
workflow_dispatch:
inputs:
version:
description: "Version to build a release for (e.g. 3.0.0, 2.4.0.dev8)"
required: true
defaults:
run:
shell: bash -l {0}
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Check Maintainer
env:
BOKEH_VERSION: ${{ github.event.inputs.version }}
RELEASE_MAINTAINERS: ${{ secrets.RELEASE_MAINTAINERS }}
run: |
if echo "$RELEASE_MAINTAINERS" | grep -qE "^${{github.actor}}$"; then
echo
echo "User is authorized to build releases, proceeding with release build for $BOKEH_VERSION"
git config --global user.email "[email protected]"
git config --global user.name "${{github.actor}}"
exit 0
fi
echo
echo "User is NOT authorized to build releases, aborting..."
echo
echo "Please contact @bokeh/core about conducting releases."
exit 1
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: 'latest'
activate-environment: bk-release-build
environment-file: conda/environment-release-build.yml
- name: Install sampledata
run: python src/bokeh/util/sampledata.py
- name: Post install status
run: |
echo "$(which node) @ $(node --version)"
echo "$(which npm) @ $(npm --version)"
conda info
conda list
- name: Build Release Tarball
env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
BOKEH_VERSION: ${{ github.event.inputs.version }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
SLACK_TOKEN: ${{ secrets.SLACK_BUILD_RELEASE_TOKEN }}
run: python -m release build $BOKEH_VERSION