-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77132bd
commit 4b2fb2e
Showing
6 changed files
with
141 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,14 +50,16 @@ jobs: | |
- name: Set "final" tag and date-time formatting | ||
if: github.event_name == 'release' | ||
run: | | ||
echo "FINAL_TAG=-a final" >> "$GITHUB_ENV"; echo "DATE_FMT=+%d %B, %Y" >> "$GITHUB_ENV" | ||
echo "DATE_FMT=+%d %B, %Y" >> "$GITHUB_ENV" | ||
echo "DOI=$(tail -n 1: doi-catalog.txt |cut -d : -f 2)" >> $GITHUB_ENV | ||
echo "FINAL_TAG=-a final" >> "$GITHUB_ENV"; | ||
# Build cf-conventions.html using the Analog-inc asciidoctor-action | ||
- name: Build cf-conventions.html | ||
uses: Analog-inc/[email protected] | ||
with: | ||
shellcommand: 'asciidoctor --verbose ${FINAL_TAG} -a docprodtime=$(date -u ${DATE_FMT}) cf-conventions.adoc -D conventions_build; cp -r images conventions_build' | ||
# Patch the cfconventions.org link | ||
- run: sed -E -i 's+(See )(https://cfconventions.org)( for further information.)+\1<a href="\2" target="_blank">\2</a>\3+' ./conventions_build/cf-conventions.html | ||
shellcommand: 'asciidoctor --verbose ${FINAL_TAG} -a doi=${DOI} -a docprodtime=$(date -u ${DATE_FMT}) cf-conventions.adoc -D conventions_build; cp -r images conventions_build' | ||
# Remove the empty "Colophon" title and toc entry from the html version | ||
- run: sed -i '/> </{N;N;d;}' ./conventions_build/cf-conventions.html | ||
# Build cf-conventions.pdf using the Analog-inc asciidoctor-action | ||
- name: Build cf-conventions.pdf | ||
uses: Analog-inc/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# No DOIs before version 1.12 | ||
# Format: last line MUST be the version to be released | ||
# and MUST provide the correct doi-string starting with 10 | ||
# MUST NOT be any space before or after the colon | ||
# version:full doi-string | ||
1.11: | ||
1.12:TEST-DOI |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters