Skip to content

add preview feature using gh actions #17

add preview feature using gh actions

add preview feature using gh actions #17

Workflow file for this run

name: Deploy PR previews
permissions:
contents: write
pages: write
id-token: write
on:
pull_request:
types:
- opened
- synchronize
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
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
- name: Deploy preview
uses: rossjrw/[email protected]
with:
source-dir: ./
token: ${{ secrets.GITHUB_TOKEN }}
action: auto