-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.03 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: main
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
container:
image: texlive/texlive
defaults:
run:
working-directory: ./
steps:
- uses: actions/checkout@v1
- name: make
run: |
make -j
mkdir -p ./public/
find . -name '*.pdf' | xargs -I% mv % ./public/
for name in `ls public/`; do echo "<a href=./$name>$name</a><br>" >> public/index.html; echo "$name" >> public/list.txt; done
- name: pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public
force_orphan: true
dispatch:
runs-on: ubuntu-latest
steps:
- name: repository
run: |
curl -X POST https://api.github.com/repos/ricosjp/rules/dispatches \
-H "Accept: application/vnd.github.v3+json" \
-H "authorization: token ${{ secrets.DISPATCH_TOKEN }}" \
--data '{"event_type":"from '$GITHUB_REPOSITORY'"}'