diff --git a/.github/workflows/doc_deploy.yaml b/.github/workflows/doc_deploy.yaml new file mode 100644 index 0000000..da55814 --- /dev/null +++ b/.github/workflows/doc_deploy.yaml @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 70b0082..d8bed53 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 ./... diff --git a/prof_web_doc/mkdocs.yml b/prof_web_doc/mkdocs.yml index 39b6909..577b1db 100644 --- a/prof_web_doc/mkdocs.yml +++ b/prof_web_doc/mkdocs.yml @@ -1 +1,3 @@ site_name: Prof Docs +repo_url: https://github.com/AlexsanderHamir/prof +edit_uri: ""