This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.87 KB
/
pages.yaml
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
43
44
45
46
47
48
49
50
name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build jekyll/builder
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod a+w /srv/jekyll/Gemfile.lock && chmod 777 /srv/jekyll && JEKYLL_ENV=production jekyll build --future --config ./_config.yml"
- name: Commit to Main
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'main'
commit-message: '[ Generate Jekyll Website ]'
force-add: 'true'
# - name: Deploy to gh-pages
# uses: docker://peaceiris/gh-pages:v2.5.0
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# push-branch: 'gh-pages'
# publish_dir: ./_site
# env:
# ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
# PUBLISH_BRANCH: gh-pages
# PUBLISH_DIR: ./_site
# build-and-deploy:
# strategy:
# matrix:
# ruby: [2.4.1]
# runs-on: ubuntu-latest
# steps:
# - name: Checkout 🛎️
# uses: actions/[email protected]
# - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
# run: JEKYLL_ENV=production bundle exec jekyll build --config ./_config.yml
# - name: Deploy 🚀
# uses: JamesIves/[email protected]
# with:
# branch: gh-pages # The branch the action should deploy to.
# folder: build # The folder the action should deploy.