Skip to content

Commit

Permalink
ignore aux files commit pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
afontani committed Jan 10, 2025
1 parent d7ef55d commit af9094e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -371,33 +371,33 @@ jobs:
working_directory: docs/technical_reference_guide
root_file: ResStockTechnicalReferenceGuide.tex
compiler: pdflatex
args: --aux-directory=dir
args: --aux-directory=aux-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: docs/technical_reference_guide/ResStockTechnicalReferenceGuide.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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/docs/read_the_docs/_build
/docs/technical_reference_guide/aux-dir
/lib
/measures/UpgradeCosts/tests/in*
/measures/UpgradeCosts/tests/*.xml
Expand Down

0 comments on commit af9094e

Please sign in to comment.