Merge pull request #42 from wanadev/dependabot/github_actions/JamesIv… #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build and deploy Github pages" | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- doc/** | |
- .github/workflows/gh-pages.yml | |
jobs: | |
build-and-deploy: | |
name: "Build and deploy Enlightme documentation" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout the repository" | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
submodules: true | |
- name: "Set up Node" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: "Install Node dependancies" | |
run: | | |
npm install | |
- name: "Build Doc" | |
run: | | |
npx enlightme | |
- name: "Deploy Github Pages" | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: doc.generated |