-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 1.16 KB
/
daily-sync-upstream.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
name: Sync with upstream adoc files and build GitHub Pages
on:
schedule:
- cron: '30 0 * * *'
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout github io
uses: actions/checkout@v2
- name: Checkout latest snapshot adoc and image files
uses: actions/checkout@v2
with:
repository: jbossws/jbossws-cxf
path: './jbossws-cxf'
- name: copy snapshot adoc files to github pages
working-directory: './jbossws-cxf'
run: |
cp -R ./docbook/src/main/doc/adoc/content ../_documentation/latest
cp -R ./docbook/src/main/doc/adoc/image ../_documentation/latest
- name: remove jbossws-cxf
run: |
rm -rf jbossws-cxf
- name: Set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Build Jekyll site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
format_output: false
prettier_ignore: '*'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site