Skip to content

Commit

Permalink
fix: docs update GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
johnalotoski committed Nov 23, 2023
1 parent 8fafbe1 commit bd59f78
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions scripts/update-docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
with lib;

let
repo = "git@github.com:input-output-hk/offchain-metadata-tools.git";
sshKey = "/run/keys/buildkite-haskell-dot-nix-ssh-private";

filterName = "orgMdFilter";
pandocOrgMdFilter = import ./mk-pandoc-filter.nix {
inherit runCommand ghcWithPackages filterName;
Expand All @@ -23,7 +20,8 @@ in
source ${./git.env}
rev=$(git rev-parse --short HEAD)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
REV=$(git rev-parse --short HEAD)
cd $(git rev-parse --show-toplevel)
echo "Preprocessing..."
Expand All @@ -45,9 +43,9 @@ in
GIT_WORK_TREE=$(pwd)/site git add -A
check_staged
echo "Committing changes..."
git commit --no-gpg-sign --message "Update gh-pages for $rev"
git commit --no-gpg-sign --message "Update gh-pages for $REV"
# if [ "''${BUILDKITE_BRANCH:-}" = master ]; then
# git push ${repo} HEAD:gh-pages
# fi
if [ "$BRANCH" = master ]; then
git push origin HEAD:gh-pages
fi
'')

0 comments on commit bd59f78

Please sign in to comment.