Skip to content

Update eleventy_build.yml to check directory #259

Update eleventy_build.yml to check directory

Update eleventy_build.yml to check directory #259

name: Eleventy Build
on: [push]
jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- name: Pull beliefs
run: |
# git clone https://github.com/moiSentineL/beliefs.git markdown-temp
# cp -r markdown-temp/beliefs.md src/pages/
# rm -rf markdown-temp
ls -a
- uses: actions/checkout@master
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
with:
node-version: '20'
# - name: Build
# uses: TartanLlama/actions-eleventy@master
# with:
# install_dependencies: true
- run: npm install
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: _site
publish_branch: gh-pages
github_token: ${{ secrets.DEPLOY_TOKEN }}