mirror of
https://github.com/jlengrand/jreleaser.github.io.git
synced 2026-03-10 08:31:25 +00:00
32 lines
802 B
YAML
32 lines
802 B
YAML
name: Site
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
site:
|
|
name: site
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Run Antora
|
|
uses: kameshsampath/antora-site-action@master
|
|
with:
|
|
antora_playbook: antora-playbook.yml
|
|
|
|
- name: Copy landing page
|
|
run: |
|
|
mkdir $GITHUB_WORKSPACE/website
|
|
cp -rf $GITHUB_WORKSPACE/build/site/* $GITHUB_WORKSPACE/website
|
|
cp -rf $GITHUB_WORKSPACE/landing/* $GITHUB_WORKSPACE/website
|
|
|
|
- name: Deploy to GitHub Pages
|
|
uses: JamesIves/github-pages-deploy-action@3.2.1
|
|
with:
|
|
FOLDER: $GITHUB_WORKSPACE/website
|
|
BRANCH: 'gh-pages'
|
|
COMMIT_MESSAGE: "[CI] Publish Documentation for ${{ github.sha }}"
|