Build webpage #642
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: Build webpage | |
on: | |
schedule: | |
# Daily build at 14:00 | |
- cron: "0 14 * * * " | |
# Manual run | |
workflow_dispatch: | |
jobs: | |
build_webpage: | |
name: Build webpage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
architecture: x64 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
# edit the parameter here | |
- name: Run builder | |
run: | | |
python main.py -u 'https://builds.mantidproject.org/' -p 'pull_requests-conda-linux' 'pull_requests-conda-windows' 'pull_requests-conda-osx' 'main_nightly_deployment_prototype' -n 30 -t "Linux" -f "linux-gnu.log" -t "Windows" -f "msys.log" -t "Mac" -f "darwin17.log" -t "Mac" "Linux" "Windows" -f "darwin17.log" "linux-gnu.log" "msys.log" | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@4.1.7 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: dist # The folder the action should deploy. | |
git-config-name: github-actions[bot] | |
git-config-email: github-actions[bot]@users.noreply.github.com | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
branch: main | |
push_options: '--force' | |
commit_options: '--no-verify --signoff' | |
commit_message: Build and auto update history | |
create_branch: true | |
file_pattern: 'history/*' | |