Sync with upstream adoc files and build GitHub Pages #1059
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |