Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

ci: remove the disabled duplicate documentation workflow and give the working one the canonical filename

Murtaza Nasir49aa4539fcc1
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 053ab34d..cd9a3bff 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -1,10 +1,8 @@
name: Deploy Documentation
on:
- release:
- types: [published]
push:
- tags: [ 'v*.*.*' ]
+ branches: [ master, main ]
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
@@ -40,17 +38,16 @@ jobs:
env:
CI: true # This enables git-revision-date plugin in CI
run: |
- cd docs
# Update site_url for GitHub Pages if needed
if [ "${{ github.repository }}" != "murtaza-nasir/speakr" ]; then
sed -i "s|site_url:.*|site_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}|" mkdocs.yml
fi
- mkdocs build --strict --site-dir _site
+ mkdocs build --strict
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
- path: ./docs/_site
+ path: ./site
deploy:
environment:
@@ -61,4 +58,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
- uses: actions/deploy-pages@v5
\ No newline at end of file
+ uses: actions/deploy-pages@v5
diff --git a/.github/workflows/docs1.yml b/.github/workflows/docs1.yml
deleted file mode 100644
index cd9a3bff..00000000
--- a/.github/workflows/docs1.yml
+++ /dev/null
@@ -1,61 +0,0 @@
-name: Deploy Documentation
-
-on:
- push:
- branches: [ master, main ]
- paths:
- - 'docs/**'
- - '.github/workflows/docs.yml'
- workflow_dispatch:
-
-permissions:
- contents: read
- pages: write
- id-token: write
-
-concurrency:
- group: "pages"
- cancel-in-progress: false
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v5
-
- - name: Setup Python
- uses: actions/setup-python@v6
- with:
- python-version: '3.11'
-
- - name: Install MkDocs and dependencies
- run: |
- pip install --upgrade pip
- pip install -r docs/requirements-docs.txt
-
- - name: Build documentation
- env:
- CI: true # This enables git-revision-date plugin in CI
- run: |
- # Update site_url for GitHub Pages if needed
- if [ "${{ github.repository }}" != "murtaza-nasir/speakr" ]; then
- sed -i "s|site_url:.*|site_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}|" mkdocs.yml
- fi
- mkdocs build --strict
-
- - name: Upload artifact
- uses: actions/upload-pages-artifact@v5
- with:
- path: ./site
-
- deploy:
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
- runs-on: ubuntu-latest
- needs: build
- steps:
- - name: Deploy to GitHub Pages
- id: deployment
- uses: actions/deploy-pages@v5