Skip to content

Commit

Permalink
initial commit for CD
Browse files Browse the repository at this point in the history
  • Loading branch information
skywarth committed Sep 24, 2024
1 parent f0c2612 commit dad1fa5
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ci
on:
push:
branches:
- master
workflow_dispatch:



# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write


concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-material
- run: pip install mkdocs-roamlinks-plugin
- run: pip install mkdocs-rss-plugin
- run: pip install mkdocs-git-revision-date-localized-plugin
# - run: pip install mkdocs-mermaid2-plugin
- run: mkdocs build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./static_site"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit dad1fa5

Please sign in to comment.