Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/doc_deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy MkDocs Site

on:
push:
branches: [main]

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install dependencies
run: pip install mkdocs mkdocs-material

- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force
12 changes: 2 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,5 @@ jobs:
- name: Install Graphviz (for pprof PNG generation)
run: sudo apt-get update && sudo apt-get install -y graphviz

- name: Run tests with coverage
run: |
go test -v -covermode=atomic -coverprofile=coverage.out ./...
go tool cover -func=coverage.out

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.out
- name: Run tests
run: go test -v ./...
2 changes: 2 additions & 0 deletions prof_web_doc/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
site_name: Prof Docs
repo_url: https://github.com/AlexsanderHamir/prof
edit_uri: ""
Loading