File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy to github pages
1+ name : Deploy to GitHub Pages
22
33on :
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
717jobs :
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
You can’t perform that action at this time.
0 commit comments