-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 1.12 KB
/
main.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
37
38
39
40
41
42
name: Build and deploy site
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v3.4.1
- name: Setup ddev
uses: jonaseberle/github-action-setup-ddev@v1
- name: Install Drupal with Tome
run: ddev drupal-install
- name: Build static site
run: ddev drush tome:static -l "https://drupalpod.github.io/drupalpod-tome-starterkit"
# If you're pointing a custom domain to GitHub Pages, you probably need a CNAME file:
# - name: Copy CNAME
# run: cp CNAME ./html/
# GitHub pages requires the 404 page to be in a particular path:
# - name: Copy 404 page
# run: cp ./html/404/index.html ./html/404.html
- name: Deploy to GitHub pages
uses: peaceiris/actions-gh-pages@v3
env:
PUBLISH_BRANCH: gh-pages-build
PUBLISH_DIR: ./html/drupalpod-tome-starterkit
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
emptyCommits: false