Skip to content

Commit

Permalink
updated jekyll build
Browse files Browse the repository at this point in the history
  • Loading branch information
bmann committed Oct 17, 2024
1 parent e122c30 commit 2c9a1f0
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/jekyll-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@ on:
branches:
- archivetrim
# - source
# It is highly recommended that you only run this action on push to a
# specific branch, eg. master or source (if on *.github.io repo)

# It is highly recommended that you only run this action on push to a
# specific branch, eg. master or source (if on *.github.io repo)

workflow_dispatch: # Allows a run of this workflow to be triggerred manually from the Actions tab

jobs:
jekyll:
runs-on: ubuntu-latest # can change this to ubuntu-latest if you prefer
runs-on: ubuntu-latest
steps:
- name: πŸ“‚ setup
uses: actions/checkout@v2
uses: actions/checkout@v3
# include the lines below if you are using jekyll-last-modified-at
# or if you would otherwise need to fetch the full commit history
# however this may be very slow for large repositories!
# with:
# fetch-depth: '0'
# fetch-depth: '0'

- name: πŸ’Ž setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.4 # can change this to 2.7 or whatever version you prefer
ruby-version: 3.1.4 # can change this to whatever version you prefer

- name: πŸ”¨ install dependencies & build site
uses: limjh16/jekyll-action-ts@v2
Expand All @@ -33,6 +35,7 @@ jobs:
#
# format_output: true
### Uses prettier https://prettier.io to format jekyll output HTML.
### To disable, just leave this commented out, prettier is disabled by default. https://github.com/limjh16/jekyll-action-ts/issues/12
#
# prettier_opts: '{ "useTabs": true }'
### Sets prettier options (in JSON) to format output HTML. For example, output tabs over spaces.
Expand All @@ -47,6 +50,9 @@ jobs:
### If the jekyll website source is not in root, specify the directory. (in this case, sample_site)
### By default, this is not required as the action searches for a _config.yml automatically.
#
# jekyll_env: development
### If you need to specify `JEKYLL_ENV` environment variable or `jekyll.environment` Liquid variable, specify it here.
#
# gem_src: sample_site
### By default, this is not required as the action searches for a _config.yml automatically.
### However, if there are multiple Gemfiles, the action may not be able to determine which to use.
Expand All @@ -60,17 +66,15 @@ jobs:
### In cases where you want to specify the cache key, enable the above 2 inputs
### Follows the format here https://github.com/actions/cache
#
# custom_opts: '--drafts --lsi'
# custom_opts: '--drafts --future'
### If you need to specify any Jekyll build options, enable the above input
### Flags accepted can be found here https://jekyllrb.com/docs/configuration/options/#build-command-options

# - name: πŸš€ fission publish
# uses: fission-codes/publish-action@v1
# with:
# machine_key: ${{ secrets.FISSION_KEY }}

- name: πŸš€ deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
# if the repo you are deploying to is <username>.github.io, uncomment the line below.
# if you are including the line below, make sure your source files are NOT in the master branch:
# publish_branch: master

0 comments on commit 2c9a1f0

Please sign in to comment.