mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2024-11-26 19:00:34 +00:00
Merge pull request #2242 from lifehackerhansol/new-jekyll-gh-actions
Add GitHub Actions build script to bump Jekyll to v4
This commit is contained in:
commit
40824f908d
42
.github/workflows/publish.yml
vendored
Normal file
42
.github/workflows/publish.yml
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
name: Deploy site
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
doc-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.2'
|
||||
|
||||
- name: Install dependencies
|
||||
run: bundle install
|
||||
|
||||
- name: Run Jekyll
|
||||
# Build the site using Jekyll
|
||||
run: bundle exec jekyll build
|
||||
|
||||
# Copy (or touch) other needed files
|
||||
# .nojekyll: to tell GH Pages to not rebuild (lol)
|
||||
# CNAME: to tell GH Pages about the domain name
|
||||
- name: Post-Jekyll build copy files
|
||||
run: |
|
||||
cp CNAME _site
|
||||
touch _site/.nojekyll
|
||||
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@v4.4.1
|
||||
with:
|
||||
branch: gh-pages # 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
|
Loading…
Reference in New Issue
Block a user