* Clean up publishing flow * Update README Co-authored-by: publish-docs.sh <maintainers@solana.com>
		
			
				
	
	
		
			35 lines
		
	
	
		
			806 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			806 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
set -ex
 | 
						|
 | 
						|
# shellcheck source=ci/env.sh
 | 
						|
source ../ci/env.sh
 | 
						|
 | 
						|
cd "$(dirname "$0")"
 | 
						|
 | 
						|
# md check
 | 
						|
find src -name '*.md' -a \! -name SUMMARY.md |
 | 
						|
 while read -r file; do
 | 
						|
   if ! grep -q '('"${file#src/}"')' src/SUMMARY.md; then
 | 
						|
       echo "Error: $file missing from SUMMARY.md"
 | 
						|
       exit 1
 | 
						|
   fi
 | 
						|
 done
 | 
						|
 | 
						|
: "${rust_stable_docker_image:=}" # Pacify shellcheck
 | 
						|
 | 
						|
# shellcheck source=ci/rust-version.sh
 | 
						|
source ../ci/rust-version.sh
 | 
						|
../ci/docker-run.sh "$rust_stable_docker_image" docs/build-cli-usage.sh
 | 
						|
../ci/docker-run.sh "$rust_stable_docker_image" docs/convert-ascii-to-svg.sh
 | 
						|
./set-solana-release-tag.sh
 | 
						|
 | 
						|
# Build from /src into /build
 | 
						|
npm run build
 | 
						|
 | 
						|
# Publish only from merge commits and release tags
 | 
						|
if [[ -n $CI ]]; then
 | 
						|
  if [[ -z $CI_PULL_REQUEST ]]; then
 | 
						|
    ./publish-docs.sh
 | 
						|
  fi
 | 
						|
fi
 |