Skip to content

Commit

Permalink
Update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
qwtel committed Sep 4, 2024
1 parent 3f12154 commit c2345ce
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 166 deletions.
2 changes: 1 addition & 1 deletion #jekyll-theme-hydejack
32 changes: 0 additions & 32 deletions .github/workflows/deploy.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to Cloudflare Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
token: ${{ secrets.JEKYLL_PAT }}
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16
- name: Build Jekyll Theme Hydejack
run: cd ./#jekyll-theme-hydejack && npm i && npm run build
- name: Build with Jekyll
run: bundle exec jekyll build --destination ./build
env:
JEKYLL_ENV: production
- uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
_gh_pages
_site
_drafts
.ruby-version

# Numerous always-ignore extensions
*.diff
Expand Down Expand Up @@ -45,6 +44,7 @@ vendor
.jekyll-metadata
.jekyll-cache
*.gem
Gemfile.lock
_zip
/stats.json
/dist
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.2
132 changes: 0 additions & 132 deletions Gemfile.lock

This file was deleted.

0 comments on commit c2345ce

Please sign in to comment.