RESULTS upload benchmark_flamby results (#44) #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
plot_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- 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/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: html # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |