Skip to content

Commit

Permalink
Properly set the date env var in publishDocs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mortele committed Jan 7, 2022
1 parent a257700 commit b16069e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
14 changes: 3 additions & 11 deletions docs/buildDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ set -e
# File: buildDocs.sh
# Purpose: Script that builds our documentation using sphinx and updates GitHub
# Pages. This script is executed by:
# .github/workflows/docs_pages_workflow.yml
# .github/workflows/docs_pages.yml
#
# Authors: Michael Altfield <[email protected]>
# Created: 2020-07-17
# Updated: 2020-07-17
# Version: 0.1
# Updated: 2022-01-07
# Version: 0.1.1
################################################################################

###################
Expand All @@ -25,14 +25,6 @@ python3 -m pip install -r requirements.txt
python3 -m pip install -r docs/docs_requirements.txt
python3 -m pip install .

#####################
# DECLARE VARIABLES #
#####################

pwd
ls -lah
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)

##############
# BUILD DOCS #
##############
Expand Down
14 changes: 10 additions & 4 deletions docs/publishDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@
set -x
set -e
################################################################################
# File: buildDocs.sh
# File: publishDocs.sh
# Purpose: Script that builds our documentation using sphinx and updates GitHub
# Pages. This script is executed by:
# .github/workflows/docs_pages_workflow.yml
# .github/workflows/docs_pages.yml
#
# Authors: Michael Altfield <[email protected]>
# Created: 2020-07-17
# Updated: 2020-07-17
# Version: 0.1
# Updated: 2022-01-07
# Version: 0.1.1
################################################################################

#####################
# DECLARE VARIABLES #
#####################

export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)

#######################
# Update GitHub Pages #
#######################
Expand Down

0 comments on commit b16069e

Please sign in to comment.