generated from 11ty/eleventy-base-blog
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 859 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build and Deploy
on:
push:
branches:
- main # or your default branch
issues:
types: [opened]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18' # specify your Node.js version
- name: Install Dependencies
run: npm install
- name: Get Issues
run: node issues.js # or your specific build command
- name: Get Links
run: node links.js # or your specific build command
- name: Build
run: npx eleventy # or your specific build command
- name: Deploy to gh_pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./_site # specify the directory of your built site