Skip to content

Commit b77e0bc

Browse files
committed
Switch to actions-based pages build
1 parent 10f600a commit b77e0bc

1 file changed

Lines changed: 30 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
1-
name: Deploy to github pages
1+
name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
616

717
jobs:
8-
build:
18+
build-and-deploy:
919
runs-on: ubuntu-latest
10-
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deploy.outputs.page_url }}
1123
steps:
12-
- uses: actions/checkout@v2
13-
- uses: manoelcampos/asciidoctor-ghpages-action@v2
14-
with:
15-
asciidoctor_params: --attribute=nofooter
24+
- uses: actions/checkout@v6
25+
26+
- name: Build AsciiDoc
27+
run: |
28+
sudo apt-get install -y asciidoctor
29+
mkdir -p _site
30+
asciidoctor --attribute=nofooter -o _site/index.html index.adoc
31+
32+
- name: Upload artifact
33+
uses: actions/upload-pages-artifact@v5
34+
35+
- name: Deploy to GitHub Pages
36+
id: deploy
37+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)