-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1 KB
/
docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Docs
on:
push:
branches:
- 'main'
paths:
- asciidocs/**
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build & Publish 🚀
runs-on: ubuntu-latest
env:
INPUTPATH: asciidocs
SLIDES: false
BRANCH: gh-pages
steps:
- uses: actions/checkout@v4
#- name: install packages
# uses: awalsh128/cache-apt-pkgs-action@latest
# with:
# packages: asciidoctor graphviz
# version: 1.0
#- name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: run docker
run: |
sudo ${{ env.INPUTPATH }}/scripts/docker-convert.sh ${{ env.INPUTPATH }} ${{ env.SLIDES }}
tree
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
# GITHUB_TOKEN: ${{ github.TOKEN }}
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ env.BRANCH }}
folder: ${{ env.INPUTPATH }}