-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
63 lines (57 loc) · 1.58 KB
/
action.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'Publish component'
description: 'Publish component and documentation'
inputs:
ssh-key:
required: True
publish-directory:
required: True
default: /tmp/publish
release-directory:
required: True
default: /tmp/release
gh-token:
required: True
runs:
using: "composite"
steps:
- run: |
mkdir -p ${{inputs.publish-directory}}
mkdir -p ${{inputs.release-directory}}
mkdir -p doc
if ! [ -f export-settings.user ]; then
echo "(setq org-page-default-stylesheets t)" > export-settings.user
fi
shell: bash
- name: Setup SSH
shell: bash
run: |
cd $HOME
pwd
mkdir .ssh
echo "$SSH_KEY" > .ssh/id_rsa
chmod 600 .ssh/id_rsa
env:
SSH_KEY: ${{inputs.ssh-key}}
- name: Checkout style
uses: actions/checkout@v2
with:
repository: aardsoft/style
path: style
token: "${{ inputs.gh-token }}"
- name: Build page
uses: aardsoft/publish-org-tree@master
with:
publish-directory: "${{inputs.publish-directory}}"
env:
org_publish_function: org-html-publish-to-templated-html
project_directory: doc
default_page_template: page_with_inline_sidebar.html
template_directory: ../style/templates
style_directory: ../style
GH_TOKEN: ${{inputs.gh-token}}
- name: Build archives
run: ${{ github.action_path}}/pack.sh
shell: bash
env:
release_dir: "${{inputs.release-directory}}"
publish_dir: "${{inputs.publish-directory}}"