From 83bd57ce64a78640cc6bd0b94632de37f3c2086e Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Mon, 3 Apr 2023 00:02:42 -0700 Subject: [PATCH] Add GitHub Actions build script to bump Jekyll to v4 --- .github/workflows/publish.yml | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000000..87e684db2a --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,47 @@ +name: Deploy site + +on: + push: + branches: [ master ] + paths: + - _pages/** + - .github/workflows/publish.yml + - package.json + - Gemfile + 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