diff --git a/.github/workflows/deploy-to-github-pages.yml b/.github/workflows/deploy-to-github-pages.yml new file mode 100644 index 00000000..f0f15aef --- /dev/null +++ b/.github/workflows/deploy-to-github-pages.yml @@ -0,0 +1,28 @@ +# This is a basic workflow to help you get started with Actions + +name: Deploy docs + +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Run the docs build in a container + uses: addnab/docker-run-action@v3 + with: + image: registry.opensuse.org/home/atgracey/cnbp/containers/builder:latest + options: -v ${{ github.workspace }}:/docs + run: | + cd /docs/asciidoc + daps -d DC-edge html