Merge pull request #545 from geshan/geshan-patch-1 #2398
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: | |
branches: | |
- source | |
- staging | |
schedule: | |
# everyday at 8 PM UTC | |
- cron: '0 20 * * *' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
- run: npm ci | |
- run: npm run build | |
env: | |
GA_API_ENDPOINT: ${{ secrets.GA_API_ENDPOINT }} | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
env: | |
PUBLISH_DIR: _site | |
PUBLISH_BRANCH: master | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |