This repository was archived by the owner on Jul 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.32 KB
/
main.yml
File metadata and controls
40 lines (34 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Note: this action doesn't work
# Name of your GitHub Actions workflow.
name: Publish to GitHub Pages
env:
DEBUG: true
# Specifies to run this workflow whenever a push is made (commits are
# added) to the branch named `jekyll`.
on:
push:
branches:
# Change this to the branch where you keep your Jekyll code.
- jekyll
# Define a job named `build-and-publish` in your workflow.
jobs:
build-and-publish:
runs-on: ubuntu-latest # This job uses a GitHub-hosted runner.
steps:
# Checkout the source from the `jekyll` branch.
- uses: actions/checkout@v2
# - uses: ruby/setup-ruby@v1
# with:
# ruby-version: '2.6.3' # as per Gemfile
# Invoke this action against the newly checked out source code.
- uses: meitar/jekyll-builder-for-github-pages-action@master
with:
# Provide this action with your repository's `GH_PAGES_TOKEN`
# "Secret" variable. This should be the value of a personal
# access token granted, at a minimum, the `public_repo` and
# the `repo_deployment` scopes needed to deploy to GH Pages.
secret_gh_pages_api_token: ${{ secrets.GH_PAGES_TOKEN }}
pre_build_commands: |
echo "using: $(ruby --version)"
gem install bundler --version 1.17.3
bundle install