Skip to content

Commit

Permalink
Fixed publish script (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Jan 23, 2024
1 parent bf65bed commit 4d08d2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ GITTAG=$(git tag --points-at HEAD)
# Build the specification draft document
echo "Building spec draft"
mkdir -p public/draft
spec-md --metadata spec/metadata.json --githubSource "https://github.com/graphql/composite-schemas-spec/blame/main/" spec/GraphQLCompositeSchemas.md > public/draft/index.html
spec-md --metadata spec/metadata.json --githubSource "https://github.com/graphql/composite-schemas-spec/blame/main/" spec/Spec.md > public/draft/index.html

# If this is a tagged commit, also build the release document
if [ -n "$GITTAG" ]; then
echo "Building spec release $GITTAG"
mkdir -p "public/$GITTAG"
spec-md --metadata spec/metadata.json --githubSource "https://github.com/graphql/composite-schemas-spec/blame/$GITTAG/" spec/GraphQLCompositeSchemas.md > "public/$GITTAG/index.html"
spec-md --metadata spec/metadata.json --githubSource "https://github.com/graphql/composite-schemas-spec/blame/$GITTAG/" spec/Spec.md > "public/$GITTAG/index.html"
fi

# Create the index file
Expand Down

0 comments on commit 4d08d2f

Please sign in to comment.