-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
239 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -319,11 +319,12 @@ jobs: | |
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Install software | ||
run: | | ||
export DEBIAN_FRONTEND=noninteractive | ||
sudo apt update | ||
sudo -E apt-get install -y wget unzip python3-sphinx-rtd-theme | ||
# - name: Install software | ||
# run: | | ||
# export DEBIAN_FRONTEND=noninteractive | ||
# apt update && apt install sudo | ||
# sudo apt update | ||
# sudo -E apt-get install -y wget unzip python3-sphinx-rtd-theme | ||
|
||
# - name: Download feature samples | ||
# uses: actions/download-artifact@v4 | ||
|
@@ -364,37 +365,39 @@ jobs: | |
# name: documentation | ||
# path: docs/read_the_docs/_build/html/ | ||
|
||
- name: Build ResStock Technical Reference Guide | ||
uses: xu-cheng/latex-action@v3 | ||
- name: Build technical reference guide | ||
uses: dante-ev/latex-action@2023-A | ||
with: | ||
working_directory: docs/technical_reference_guide | ||
root_file: 0_main.tex | ||
root_file: ResStockTechnicalReferenceGuide.tex | ||
compiler: pdflatex | ||
args: --aux-directory=dir | ||
|
||
- name: Save Technical Reference Guide | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: technical_reference_guide | ||
path: 0_main.pdf | ||
|
||
- name: Commit latest results | ||
shell: bash | ||
run: | | ||
branch_name="${{ github.head_ref }}" | ||
git pull origin $branch_name | ||
# cp -r samples/buildstock*.csv test/base_results/baseline/annual | ||
# cp -r results/baseline/annual/results*.csv test/base_results/baseline/annual | ||
# cp -r results/baseline/timeseries/*.csv test/base_results/baseline/timeseries | ||
# cp -r results/upgrades/annual/results*.csv test/base_results/upgrades/annual | ||
# cp -r results/upgrades/timeseries/*.csv test/base_results/upgrades/timeseries | ||
git add test/base_results | ||
git add docs | ||
git add resources/options_lookup.tsv | ||
git add test/tests_yml_files | ||
git status | ||
if [[ $(git diff --cached --exit-code) ]]; then | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
git commit -m "Latest results." | ||
echo "Pushing to branch: $branch_name" | ||
git push -u origin $branch_name | ||
fi | ||
# - name: Save Technical Reference Guide | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: technical_reference_guide | ||
# path: 0_main.pdf | ||
|
||
# - name: Commit latest results | ||
# shell: bash | ||
# run: | | ||
# branch_name="${{ github.head_ref }}" | ||
# git pull origin $branch_name | ||
# # cp -r samples/buildstock*.csv test/base_results/baseline/annual | ||
# # cp -r results/baseline/annual/results*.csv test/base_results/baseline/annual | ||
# # cp -r results/baseline/timeseries/*.csv test/base_results/baseline/timeseries | ||
# # cp -r results/upgrades/annual/results*.csv test/base_results/upgrades/annual | ||
# # cp -r results/upgrades/timeseries/*.csv test/base_results/upgrades/timeseries | ||
# git add test/base_results | ||
# git add docs | ||
# git add resources/options_lookup.tsv | ||
# git add test/tests_yml_files | ||
# git status | ||
# if [[ $(git diff --cached --exit-code) ]]; then | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "GitHub Action" | ||
# git commit -m "Latest results." | ||
# echo "Pushing to branch: $branch_name" | ||
# git push -u origin $branch_name | ||
# fi |
This file was deleted.
Oops, something went wrong.
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