···
8
-
# It is highly recommended that you only run this action on push to a
9
-
# specific branch, eg. master or source (if on *.github.io repo)
8
+
# It is highly recommended that you only run this action on push to a
9
+
# specific branch, eg. master or source (if on *.github.io repo)
11
+
workflow_dispatch: # Allows a run of this workflow to be triggerred manually from the Actions tab
13
-
runs-on: ubuntu-latest # can change this to ubuntu-latest if you prefer
15
+
runs-on: ubuntu-latest
16
-
uses: actions/checkout@v2
18
+
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!
26
-
ruby-version: 3.1.4 # can change this to 2.7 or whatever version you prefer
28
+
ruby-version: 3.1.4 # can change this to whatever version you prefer
- name: ๐จ install dependencies & build site
uses: limjh16/jekyll-action-ts@v2
···
### Uses prettier https://prettier.io to format jekyll output HTML.
38
+
### 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.
···
### 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.
53
+
# jekyll_env: development
54
+
### If you need to specify `JEKYLL_ENV` environment variable or `jekyll.environment` Liquid variable, specify it here.
### 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.
···
### In cases where you want to specify the cache key, enable the above 2 inputs
### Follows the format here https://github.com/actions/cache
63
-
# custom_opts: '--drafts --lsi'
69
+
# 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
67
-
# - name: ๐ fission publish
68
-
# uses: fission-codes/publish-action@v1
70
-
# machine_key: ${{ secrets.FISSION_KEY }}
uses: peaceiris/actions-gh-pages@v3
github_token: ${{ secrets.GITHUB_TOKEN }}
78
+
# if the repo you are deploying to is <username>.github.io, uncomment the line below.
79
+
# if you are including the line below, make sure your source files are NOT in the master branch:
80
+
# publish_branch: master