Skip to content

Commit

Permalink
rename main
Browse files Browse the repository at this point in the history
  • Loading branch information
afontani committed Jan 10, 2025
1 parent 60916b7 commit 125be03
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 239 deletions.
75 changes: 39 additions & 36 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
202 changes: 0 additions & 202 deletions docs/technical_reference_guide/0_main.tex

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ \section{OpenStudio--HPXML}

\begin{figure}
\centering
\includegraphics[width=1\linewidth]{ResStock Technical Reference Guide/images/OSHPXML.png}
\includegraphics[width=1\linewidth]{images/OSHPXML.png}
\caption{Flowchart of OpenStudio measures performed to translate a ResStock sample into an OpenStudio model}
\label{fig:os-hpxml}
\end{figure}
Expand Down

0 comments on commit 125be03

Please sign in to comment.