Skip to content

Commit 1cc1ba5

Browse files
committed
Install goat; always build html/txt
1 parent 63de26f commit 1cc1ba5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build-rfc.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Build and publish document
2-
on:
3-
push:
4-
branches: [main]
2+
on: push
53

64
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
75
permissions:
@@ -23,7 +21,11 @@ jobs:
2321
key: webdav-push.mkd
2422

2523
- name: Install packages
26-
run: sudo gem install kramdown-rfc && sudo apt-get install --no-install-recommends -y xml2rfc
24+
run: >
25+
sudo apt-get install --no-install-recommends -y golang-go xml2rfc &&
26+
sudo gem install kramdown-rfc &&
27+
sudo pip3 install svgcheck --break-system-packages &&
28+
go install github.com/blampe/goat/cmd/goat@latest
2729
2830
- name: Prepare output directory
2931
run: mkdir build
@@ -41,6 +43,7 @@ jobs:
4143
path: build
4244

4345
deploy:
46+
if: github.ref == 'refs/heads/main'
4447
environment:
4548
name: github-pages
4649
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)