Skip to content

Move Project Setup under Fundamentals #9

Move Project Setup under Fundamentals

Move Project Setup under Fundamentals #9

Workflow file for this run

name: Deploy ASCIIDoc site to Pages
on:
push:
branches: ["master"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
name: asciidoctor -D build index.adoc
steps:
- uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Run ASCIIDoc
id: adocbuild
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor -D build index.adoc"
- name: Print execution time
run: echo "Time ${{ steps.adocbuild.outputs.time }}"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4