Skip to content

Commit 4edad29

Browse files
authored
Add publish date on CI (purescript-contrib#456)
* Add publish date to book (on website) * Separate section and print PS version * PureScript available in mdbook build
1 parent 2229cb8 commit 4edad29

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/mdbook.yml

+11
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ jobs:
1616
with:
1717
mdbook-version: 'latest'
1818

19+
- name: Set up PureScript toolchain
20+
uses: purescript-contrib/setup-purescript@main
21+
22+
- name: Add version section
23+
run: |
24+
version=$(purs --version)
25+
today=$(date -I)
26+
echo -e "\n## Release\n" >> README.md
27+
echo -e "PureScript v$version\n" >> README.md
28+
echo -e "Published on $today" >> README.md
29+
1930
- run: mdbook build
2031

2132
- name: Deploy

0 commit comments

Comments
 (0)