Skip to content

Commit ec585e1

Browse files
committed
more
1 parent 499e6b6 commit ec585e1

File tree

2 files changed

+79
-54
lines changed

2 files changed

+79
-54
lines changed

.github/workflows/jekyll.yml

Lines changed: 14 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,21 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
6-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7-
name: Deploy Jekyll site to Pages
8-
9-
on:
10-
# Runs on pushes targeting the default branch
11-
push:
12-
branches: ["master"]
13-
14-
# Allows you to run this workflow manually from the Actions tab
15-
workflow_dispatch:
16-
17-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18-
permissions:
19-
contents: read
20-
pages: write
21-
id-token: write
22-
23-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25-
concurrency:
26-
group: "pages"
27-
cancel-in-progress: false
28-
291
jobs:
302
# Build job
313
build:
32-
runs-on: ubuntu-22.04
4+
# Specify runner + build & upload the static files as an artifact
5+
runs-on: ubuntu-latest
336
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v3
36-
- name: Setup Ruby
37-
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
7+
- name: Build static files
8+
id: build
9+
run: |
10+
# <Not provided for brevity>
11+
# At a minimum this step should build the static files of your site
12+
# <Not provided for brevity>
13+
14+
- name: Upload static files as artifact
15+
id: deployment
16+
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
3817
with:
39-
ruby-version: '3.1' # Not needed with a .ruby-version file
40-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
41-
cache-version: 0 # Increment this number if you need to re-download cached gems
42-
- name: Setup Pages
43-
id: pages
44-
uses: actions/configure-pages@v3
45-
- name: Build with Jekyll
46-
# Outputs to the './_site' directory by default
47-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
48-
env:
49-
JEKYLL_ENV: production
50-
#- name: Upload artifact
51-
# Automatically uploads an artifact from the './_site' directory by default
52-
#uses: actions/upload-pages-artifact@v1
53-
#uses: actions/upload-pages-artifact@v4
54-
- name: Upload build artifacts
55-
uses: actions/upload-artifact@v4
56-
with:
57-
name: build-artifacts
58-
path: ./build
18+
path: build_outputs_folder/
5919

6020
# Deployment job
6121
deploy:
@@ -67,4 +27,4 @@ jobs:
6727
steps:
6828
- name: Deploy to GitHub Pages
6929
id: deployment
70-
uses: actions/deploy-pages@v2
30+
uses: actions/deploy-pages@v4

.github/workflows/jekyll.yml.old

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: Deploy Jekyll site to Pages
8+
9+
on:
10+
# Runs on pushes targeting the default branch
11+
push:
12+
branches: ["master"]
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: false
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-22.04
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v3
36+
- name: Setup Ruby
37+
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
38+
with:
39+
ruby-version: '3.1' # Not needed with a .ruby-version file
40+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
41+
cache-version: 0 # Increment this number if you need to re-download cached gems
42+
- name: Setup Pages
43+
id: pages
44+
uses: actions/configure-pages@v3
45+
- name: Build with Jekyll
46+
# Outputs to the './_site' directory by default
47+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
48+
env:
49+
JEKYLL_ENV: production
50+
- name: Upload artifact
51+
# Automatically uploads an artifact from the './_site' directory by default
52+
uses: actions/upload-pages-artifact@v1
53+
#uses: actions/upload-pages-artifact@v4
54+
55+
# Deployment job
56+
deploy:
57+
environment:
58+
name: github-pages
59+
url: ${{ steps.deployment.outputs.page_url }}
60+
runs-on: ubuntu-latest
61+
needs: build
62+
steps:
63+
- name: Deploy to GitHub Pages
64+
id: deployment
65+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)