Skip to content

Commit 073b6f6

Browse files
committed
Update docs
1 parent 2abf17f commit 073b6f6

2 files changed

Lines changed: 31 additions & 8 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,24 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
717

818
jobs:
19+
# Build job
920
build:
1021
runs-on: ubuntu-latest
1122
steps:
12-
- uses: actions/checkout@v3
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
1325

1426
- name: Set up Python
1527
uses: actions/setup-python@v4
@@ -20,11 +32,22 @@ jobs:
2032
run: |
2133
pip install .[docs]
2234
23-
- name: Build site
24-
run: mkdocs build
35+
- name: Build MkDocs site
36+
run: mkdocs build --strict
2537

26-
- name: Deploy to GitHub Pages
27-
uses: peaceiris/actions-gh-pages@v6
38+
- name: Upload Pages artifact
39+
uses: actions/upload-pages-artifact@v1
2840
with:
29-
github_token: ${{ secrets.GITHUB_TOKEN }}
30-
publish_dir: ./site
41+
path: ./site
42+
43+
# Deployment job
44+
deploy:
45+
needs: build
46+
runs-on: ubuntu-latest
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v1

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
site_name: "Secrets Cache"
2-
site_url: "https://rnag.github.io/py-secrets-cache/"
2+
site_url: "http://ritviknag.com/py-secrets-cache/"
33
theme:
44
name: material
55
features:

0 commit comments

Comments
 (0)