Guide_3DS/.github/workflows/publish.yml
lifehackerhansol 810e90c2b5
treewide: move everything theme related to submodule
All themes are moved to `_theme` submodule, which will be shared with
other websites on hacks.guide.

Repository-specific files can be overlayed after the fact, such as
additional languages, custom JavaScript, progress table paths and the
like.
2024-01-16 12:31:55 -08:00

39 lines
1 KiB
YAML

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'
bundler-cache: true
- name: Run Jekyll
# Build the site using Jekyll
run: JEKYLL_ENV=production 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: |
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