forked from benchopt/results
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 837 Bytes
/
publish.yml
File metadata and controls
41 lines (34 loc) · 837 Bytes
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
name: publish
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
jobs:
plot_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Install dependencies
env:
# Need to be of format repo:branch.
BENCHOPT_BRANCH: benchopt:main
run: |
pip install -r requirements.txt
USER=${BENCHOPT_BRANCH%:*}
BRANCH=${BENCHOPT_BRANCH##*:}
echo "using branch $USER:$BRANCH"
pip install -U git+https://github.com/$USER/benchOpt@$BRANCH
- name: Render
run: |
make render
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: html