-
Notifications
You must be signed in to change notification settings - Fork 2
92 lines (84 loc) · 2.35 KB
/
make-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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: make release
on:
workflow_call:
inputs:
runs-on:
default: ubuntu-latest
type: string
api_endpoint:
required: true
type: string
cell_github:
required: true
type: string
debug:
required: true
type: string
jupyterhub_user:
required: true
type: string
module_mapping_url:
required: true
type: string
registry_url:
required: true
type: string
search_api_endpoint:
required: true
type: string
vlab_slug:
required: true
type: string
secrets:
cell_github_token:
required: true
naavre_api_token:
required: true
search_api_token:
required: true
env:
CELL_GITHUB: ${{ inputs.cell_github }}
CELL_GITHUB_TOKEN: ${{ secrets.cell_github_token }}
REGISTRY_URL: ${{ inputs.registry_url }}
NAAVRE_API_TOKEN: ${{ secrets.naavre_api_token }}
JUPYTERHUB_USER: ${{ inputs.jupyterhub_user }}
API_ENDPOINT: ${{ inputs.api_endpoint }}
VLAB_SLUG: ${{ inputs.vlab_slug }}
MODULE_MAPPING_URL: ${{ inputs.module_mapping_url }}
SEARCH_API_ENDPOINT: ${{ inputs.search_api_endpoint }}
SEARCH_API_TOKEN: ${{ secrets.search_api_token }}
ASYNC_TEST_TIMEOUT: 30
DEBUG: ${{ inputs.debug }}
jobs:
make-release:
runs-on: ${{ inputs.runs-on }}
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
miniforge-version: latest
miniforge-variant: Mambaforge
python-version: 3.11
path: ${{ env.CONDA }}/envs
environment-file: environment.yml
activate-environment: jupyterlab
use-mamba: true
- name: Cache Conda environment
uses: actions/cache@v4
with:
path: ${{ env.CONDA }}/envs
key: conda-environment-${{ runner.os }}-${{ hashFiles('environment.yml') }}
restore-keys: |
conda-environment-${{ runner.os }}-
id: cache-conda
- name: make release
shell: bash -el {0}
run: make release
- name: 'Upload wheel artifact'
uses: actions/upload-artifact@v3
with:
name: jupyterlab_vre
path: dist/jupyterlab_vre-0.1.0-py3-none-any.whl