Skip to content

Commit

Permalink
Complete undo of workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-clayton committed Aug 23, 2023
1 parent f3c611d commit 26c8ce3
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
name: GitHub Pages Publish

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [main]
pull_request:
branches: [main]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
prepare:
# 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
Expand All @@ -18,26 +25,10 @@ jobs:
cp -r fonts/* dist/fonts/
cp -r images/* dist/images/
cp {LICENSE-AGPL,LICENSE-CC-BY-SA-4.0} dist
- name: Upload dist
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
build:
runs-on: ubuntu-latest
container:
image: docker.io/asciidoctor/docker-asciidoctor:latest
needs: prepare
steps:
- uses: actions/checkout@v3
- name: Download dist
uses: actions/download-artifact@v3
with:
name: dist
- run: gem install asciidoctor-multipage
- id: adocbuild
name: Build book
run: asciidoctor -a toc=left -o dist/index.html dragonhack.adoc
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor -a toc=left -o dist/index.html dragonhack.adoc"
- name: Archive artifacts
uses: actions/upload-pages-artifact@v1
with:
Expand Down

0 comments on commit 26c8ce3

Please sign in to comment.