Merge pull request #1 from gowin20/gwen #20
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 Eleventy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies & build | |
run: | | |
npm ci | |
npm run build | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
#publish_dir is the folder on the docker instance which eleventy builds the pages to. | |
#it is not the docs folder in the repository | |
publish_dir: public | |
#publish_branch is the branch in the repository. | |
#this is where you need to point GitHub pages | |
publish_branch: gh-pages |