-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (47 loc) · 1.41 KB
/
gh-pages-deployment.yml
File metadata and controls
54 lines (47 loc) · 1.41 KB
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
44
45
46
47
48
49
50
51
52
53
54
name: NISP Tools
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Install XML Tools
run: |
sudo apt update
sudo apt install -qq libxml2-utils libsaxonb-java ant
- name: Generate NISP documentation
run: |
xmllint --noout --valid src/standards/standards.xml
ant -f newbuild.xml
ant all
ant debug
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: nispworld/live-nisp
publish_branch: master
publish_dir: ./build
user_name: 'nisp-bot'
user_email: 'nisp-bot@nw3.dk'
keep_files: true
# cname: live.nisp.nw3.dk
- name: Trigger NISP Nation
env:
TRIGGER_NISP_NATION: ${{ secrets.TRIGGER_NISP_NATION }}
run: |
curl -v -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token $TRIGGER_NISP_NATION" \
--request POST \
--data '{"event_type": "build-nation",
"client_payload": { "MESSAGE" : "Build requested by NISP-tools" }}' \
https://api.github.com/repos/stavnstrup/nisp-nation/dispatches