-
Notifications
You must be signed in to change notification settings - Fork 9
35 lines (31 loc) · 1.2 KB
/
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
name: Build and Deploy
on:
push:
# NOTE:
# For a **project** site (username.github.io/project/), push things
# to the **master** branch and make sure to set the line below to
# ` - master`; also, at the end of the file, change to `BRANCH: gh-pages`
#
# For a **personal** site (username.github.io/), push things to a **dev**
# branch and make sure to set the line below to `- dev` this is
# because for user pages GitHub pages **requires** the deployment to be
# on the master branch; also, at the end of the file, change to
# `BRANCH: master`
branches:
- source
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
- uses: lemonarc/[email protected]
- uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: master # The branch the action should deploy to.
FOLDER: _site # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch