Skip to content

Commit

Permalink
smart branch published
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarrazzo committed Nov 11, 2024
1 parent 5b10171 commit 5a1eab3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,43 @@ name: docs
on:
push:
branches:
- master
- dev
- master
- smart
env:
SITE_DIR: "gh-pages"
jobs:
build_site:
name: "Build site with Antora"
runs-on: [ubuntu-latest]
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: "Generate site using antora site action"
uses: kameshsampath/antora-site-action@master
with:
antora_playbook: site.yml
- name: "Upload generated site"
uses: actions/[email protected]
with:
name: site
path: "${{ github.workspace }}/${{ env.SITE_DIR }}"
- name: Checkout
uses: actions/checkout@v2
- name: "Generate site using antora site action"
uses: kameshsampath/antora-site-action@master
with:
antora_playbook: site.yml
- name: "Upload generated site"
uses: actions/[email protected]
with:
name: site
path: "${{ github.workspace }}/${{ env.SITE_DIR }}"
deploy_site:
runs-on: [ubuntu-latest]
needs: [build_site]
runs-on: [ ubuntu-latest ]
needs: [ build_site ]
name: "Deploy GitHub Pages"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download generated site
uses: actions/download-artifact@v4
with:
name: site
path: "${{ github.workspace }}/${{ env.SITE_DIR }}"
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
# ACCESS_TOKEN: # optional
GITHUB_TOKEN: "${{ github.token}}"
FOLDER: "${{ env.SITE_DIR }}"
BRANCH: "gh-pages"
COMMIT_MESSAGE: "[CI] Publish Documentation for ${{ github.sha }}"
- name: Checkout
uses: actions/checkout@v2
- name: Download generated site
uses: actions/download-artifact@v4
with:
name: site
path: "${{ github.workspace }}/${{ env.SITE_DIR }}"
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
# ACCESS_TOKEN: # optional
GITHUB_TOKEN: "${{ github.token}}"
FOLDER: "${{ env.SITE_DIR }}"
BRANCH: "gh-pages"
COMMIT_MESSAGE: "[CI] Publish Documentation for ${{ github.sha }}"
10 changes: 5 additions & 5 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ site:

content:
sources:
- url: [email protected]:redhat-scholars/serverless-workflow.git
branches: [master, dev]
start_path: documentation
- url: [email protected]:redhat-scholars/serverless-workflow.git
branches: [ master, smart ]
start_path: documentation

asciidoc:
attributes:
release-version: master
page-pagination: true
extensions:
- ./lib/tab-block.js
- ./lib/remote-include-processor.js
- ./lib/tab-block.js
- ./lib/remote-include-processor.js

ui:
bundle:
Expand Down

0 comments on commit 5a1eab3

Please sign in to comment.