Skip to content

Commit 26a04dc

Browse files
committed
fix: update deploy.yml
1 parent 78496a6 commit 26a04dc

File tree

2 files changed

+42
-32
lines changed

2 files changed

+42
-32
lines changed

.github/workflows/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: github-actions
9+
directory: /
10+
schedule:
11+
interval: "weekly"
12+
groups:
13+
actions:
14+
patterns:
15+
- "*"

.github/workflows/deploy.yml

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,49 @@
1-
name: Deploy Jekyll Site to GitHub Pages
2-
1+
name: Deploy Documentation
32
on:
43
push:
5-
branches: [ main ]
4+
branches: [main]
65
pull_request:
7-
branches: [ main ]
8-
9-
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
13-
14-
concurrency:
15-
group: "pages"
16-
cancel-in-progress: true
6+
branches: [main]
177

188
jobs:
199
build:
2010
runs-on: ubuntu-latest
2111
steps:
22-
- name: Checkout
12+
- name: Checkout Repository
2313
uses: actions/checkout@v5
24-
25-
- name: Setup Ruby
26-
uses: ruby/setup-ruby@v1
2714
with:
28-
ruby-version: '3.1'
29-
bundler-cache: true
30-
cache-version: 0
15+
persist-credentials: false
3116

32-
- name: Setup Pages
33-
id: pages
34-
uses: actions/configure-pages@v4
17+
- name: Set up Python
18+
uses: actions/setup-python@v6
19+
with:
20+
python-version: '3.x'
3521

36-
- name: Build with Jekyll
37-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
38-
env:
39-
JEKYLL_ENV: production
22+
- name: Install Dependencies
23+
run: pipx run nox -s docs
4024

41-
- name: Upload artifact
42-
uses: actions/upload-pages-artifact@v3
25+
- name: Upload docs build as artifact
26+
uses: actions/upload-pages-artifact@v4
27+
with:
28+
name: ${{ github.event.repository.name }}_docs
29+
path: ${{ github.workspace }}/site
4330

4431
deploy:
4532
if: github.ref == 'refs/heads/main'
33+
runs-on: ubuntu-latest
34+
needs: [build]
35+
permissions:
36+
# to deploy to Pages
37+
pages: write
38+
# to verify the deployment originates from an appropriate source
39+
id-token: write
40+
# Deploy to the github-pages environment
4641
environment:
4742
name: github-pages
4843
url: ${{ steps.deployment.outputs.page_url }}
49-
runs-on: ubuntu-latest
50-
needs: build
5144
steps:
5245
- name: Deploy to GitHub Pages
5346
id: deployment
54-
uses: actions/deploy-pages@v4
47+
uses: actions/deploy-pages@v4
48+
with:
49+
artifact_name: ${{ github.event.repository.name }}_docs

0 commit comments

Comments
 (0)