Created
May 18, 2020 06:18
-
-
Save hardfire/6ad7f7ec80ebc96be80820fb7f51b7f0 to your computer and use it in GitHub Desktop.
Use this action to build an eleventy site and push to gh-pages
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: [push] | |
jobs: | |
build_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Build using node.ks | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- run: npm install | |
- run: npm run build --if-present | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
env: | |
PUBLISH_DIR: _site | |
PUBLISH_BRANCH: gh-pages | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment