-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
contents: write | ||
pages: write | ||
id-token: write | ||
|
||
|
@@ -44,6 +44,26 @@ jobs: | |
pip install mkdocs | ||
pip install mkdocs-material | ||
pip install mkdocs-mermaid2-plugin | ||
pip install mkdocs-git-revision-date-localized-plugin | ||
# pip install mkdocs-git-committers-plugin-2 | ||
# pip install mkdocs-git-authors-plugin | ||
- name: Tag and Create Release | ||
shell: pwsh | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
$today = Get-Date -Format "yyyy.MMdd" | ||
$tag = "$today.$($env:GITHUB_RUN_NUMBER)" | ||
git config user.name "Blog Publisher" | ||
git config user.email "[email protected]" | ||
Write-Host "Tagging version $tag" | ||
git tag -a $tag -m "$tag" | ||
git push origin $tag | ||
gh release create $tag -t $tag -n "Release $tag" --notes "Release $tag" --target main | ||
- name: Build site | ||
run: mkdocs build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.cache/ | ||
site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters