Merge pull request #189 from nasbench/remove-empty-detections #169
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: Generate Site | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
generate-site: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
token: ${{ secrets.PUSH_TOKEN }} | |
- name: Set up Python 3.11 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.11 | |
- name: Install Poetry | |
run: curl -sSL https://install.python-poetry.org | python - | |
- name: Install dependencies with Poetry | |
run: poetry install | |
- name: Run Site Generation | |
run: poetry run python bin/site.py -v | |
- name: Run Site Generation | |
run: poetry run python bin/gen-files.py | |
- name: Commit Generated Data | |
run: | | |
git config --global user.name "Github Actions" | |
git config --global user.email "[email protected]" | |
git config --global push.default simple | |
git add . | |
git commit -m "New site and hashes generated by GitHub Actions [ci skip]" | |
git pull --rebase origin main | |
git push |