Skip to content

Commit 36d3335

Browse files
committed
Publish from GitHub Actions
1 parent 7e85fef commit 36d3335

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "bundler"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/workflows/publish.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Ref https://github.com/actions/starter-workflows/blob/main/pages/jekyll-gh-pages.yml
2+
name: Publish
3+
on:
4+
push:
5+
branches: ["main"]
6+
#
7+
# This block is necessary for the `actions/deploy-pages` actions.
8+
# If this part does not exist, raise the following error.
9+
# Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable
10+
#
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
#
16+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: false
21+
jobs:
22+
# Build job
23+
build:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v5
30+
- name: Build with Jekyll
31+
# Jekyll outputs contents to _site by default.
32+
# Set destination path explicitly.
33+
# Just copied template file.
34+
uses: actions/jekyll-build-pages@v1
35+
with:
36+
source: ./docs/
37+
destination: ./_site
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
runs-on: ubuntu-latest
46+
needs: build
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)