From c3c18d32b1d8d79bb16a611cfd9b472a2371e9d9 Mon Sep 17 00:00:00 2001 From: andsel Date: Fri, 3 Mar 2023 17:27:37 +0100 Subject: [PATCH] Added workflow to build ascii doc and deploy in gh-pages --- .github/workflows/asciidoctor-ghpages.yml | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/asciidoctor-ghpages.yml diff --git a/.github/workflows/asciidoctor-ghpages.yml b/.github/workflows/asciidoctor-ghpages.yml new file mode 100644 index 000000000..405777cbe --- /dev/null +++ b/.github/workflows/asciidoctor-ghpages.yml @@ -0,0 +1,25 @@ +name: GitHub Pages Publish + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ gh-pages ] + pull_request: + branches: [ gh-pages ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Includes the AsciiDoctor GitHub Pages Action to convert adoc files to html and publish to gh-pages branch + - name: asciidoctor-ghpages + uses: manoelcampos/asciidoctor-ghpages-action@v2 \ No newline at end of file