Merge pull request #876 from arp55/patch1 #76
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: Eleventy Build | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
jobs: | |
build_deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "16.x" | |
- run: npm install | |
- name: Build | |
uses: TartanLlama/actions-eleventy@master | |
with: | |
args: --config=config/eleventy.config.js --pathprefix=Front-end-Developer-Interview-Questions | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_dir: ./_site | |
publish_branch: gh-pages | |
github_token: ${{ secrets.GITHUB_TOKEN }} |