FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
jekyll/.github/workflows/docs.yml at master · GroundstateTech/jekyll · GitHub
GroundstateTech
/
jekyll
Public
forked from
jekyll/jekyll
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
jekyll
/
.github
/
workflows
/
docs.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
54 lines (48 loc) · 1.65 KB
Breadcrumbs
jekyll
/
.github
/
workflows
/
docs.yml
Copy path
File metadata and controls
54 lines (48 loc) · 1.65 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name
:
Build and deploy Jekyll documentation site
on
:
push
:
branches
:
-
master
paths
:
-
"
docs/**
"
env
:
RUBY_VERSION
:
2.7
jobs
:
deploy_docs
:
if
:
"
!contains(github.event.commits[0].message, '[ci skip]')
"
runs-on
:
'
ubuntu-latest
'
env
:
BUNDLE_PATH
:
"
vendor/bundle
"
BUNDLE_JOBS
:
4
BUNDLE_RETRY
:
3
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
ruby/setup-ruby@v1
with
:
ruby-version
:
${{ env.RUBY_VERSION }}
bundler-cache
:
true
-
name
:
Clone target branch
run
:
|
REMOTE_BRANCH="${REMOTE_BRANCH:-gh-pages}"
REMOTE_REPO="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
echo "Publishing to ${GITHUB_REPOSITORY} on branch ${REMOTE_BRANCH}"
rm -rf docs/_site/
git clone --depth=1 --branch="${REMOTE_BRANCH}" --single-branch --no-checkout \
"${REMOTE_REPO}" docs/_site/
-
name
:
Build site
run
:
bundle exec jekyll build --source docs --destination docs/_site --verbose --trace
env
:
#
For jekyll-github-metadata
JEKYLL_GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Deploy to GitHub Pages
run
:
|
SOURCE_COMMIT="$(git log -1 --pretty="%an: %B" "$GITHUB_SHA")"
pushd docs/_site &>/dev/null
: > .nojekyll
git add --all
git -c user.name="${GITHUB_ACTOR}" -c user.email="${GITHUB_ACTOR}@users.noreply.github.com" \
commit --quiet \
--message "Deploy docs from ${GITHUB_SHA}" \
--message "$SOURCE_COMMIT"
git push
popd &>/dev/null
Back
|
FazBrowse Home
|
New Git URL