Skip to content

Commit bda7ac1

Browse files
committed
Added built scripts for scoresheets
1 parent 57c76f5 commit bda7ac1

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
paths:
4+
- 'onstage_entry_scoresheets/**'
5+
- 'preamble.tex'
6+
- 'committee_list.tex'
7+
8+
jobs:
9+
build:
10+
name: build main rules
11+
runs-on: ubuntu-20.04
12+
13+
steps:
14+
- name: Checkout repository with submodules
15+
uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
19+
- name: build main rules
20+
run: |
21+
docker run -v $(pwd):/documents asciidoctor/docker-asciidoctor .ci/adoc-to-tex.sh onstage_entry_scoresheets
22+
docker run -v $(pwd):/documents mrshu/texlive-dblatex .ci/tex-to-pdf.sh onstage_entry_scoresheets
23+
mkdir -p dist/${GITHUB_REF#refs/heads/}/
24+
cp -R ./media rules_documents/* dist/${GITHUB_REF#refs/heads/}/
25+
26+
- name: publish entry scoresheets
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./dist
31+
keep_files: True
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
paths:
4+
- 'onstage_scoresheets/**'
5+
- 'preamble.tex'
6+
- 'committee_list.tex'
7+
8+
jobs:
9+
build:
10+
name: build main rules
11+
runs-on: ubuntu-20.04
12+
13+
steps:
14+
- name: Checkout repository with submodules
15+
uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
19+
- name: build main rules
20+
run: |
21+
docker run -v $(pwd):/documents asciidoctor/docker-asciidoctor .ci/adoc-to-tex.sh onstage_scoresheets
22+
docker run -v $(pwd):/documents mrshu/texlive-dblatex .ci/tex-to-pdf.sh onstage_scoresheets
23+
mkdir -p dist/${GITHUB_REF#refs/heads/}/
24+
cp -R ./media rules_documents/* dist/${GITHUB_REF#refs/heads/}/
25+
26+
- name: publish main scoresheets
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./dist
31+
keep_files: True

0 commit comments

Comments
 (0)