path:
description: Path to config file. Defaults to ./install.cfg
default: ./install.cfg
output:
description: Path to directory, where the html file is written to. Defaults to ./public directory.
default: ./public
version:
description: Version of web-installation-instruction to use. If not specified, uses the latest version.
- Follow the guide for enabling gh pages for your account.
- Set
Settings > Pages > GitHub Pages > Build and deployment > Source
toDeploy from a branch
. - Create a yaml file in
.github/workflows
folder (for examplewebpage.yaml
) and put the following content into it:
name: Webpage
on:
push:
branches:
- main
paths:
- "install.cfg"
workflow_dispatch:
permissions:
contents: write
jobs:
webpage:
runs-on: ubuntu-latest
name: Compile Webpage
steps:
- uses: actions/checkout@v4
- name: Compile Webpage
uses: instructions-d-installation/[email protected]
- name: Deploy Webpage
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./public
- Push it. And wait for
JamesIves/github-pages-deploy-action
to do it's thing. (See actions.) - Go to actions and execute the workflow at least once.
- Check under
Settings > Pages > GitHub Pages > Build and deployment
ifBranch
is set togh-pages
.