-
Notifications
You must be signed in to change notification settings - Fork 396
43 lines (37 loc) · 1.15 KB
/
build.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
37
38
39
40
41
42
43
name: Build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
build_docs:
name: Build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
make check-rules > check-rule-ids.log
make all
- name: Get Github Token
id: get-gh-token
if: ${{ github.ref == 'refs/heads/main' }}
uses: vadeg/[email protected]
with:
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
application_id: ${{ secrets.APP_ID }}
- name: Create Zally Issues
if: ${{ github.ref == 'refs/heads/main' }}
env:
GH_TOKEN: ${{ steps.get-gh-token.outputs.gh_access_token }}
run: |
scripts/create-zally-issue.sh
- name: Deploy to GitHub Pages
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output