diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 20e1852..4cb352e 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -7,16 +7,22 @@ on: jobs: build: runs-on: ubuntu-latest - container: - image: squidfunk/mkdocs-material steps: - name: Checkout code uses: actions/checkout@v4 - - name: Build - run: | - mkdocs build + - name: Build with MkDocs Material + # This runs ONLY this step inside the mkdocs container + uses: docker://squidfunk/mkdocs-material:latest + with: + args: build - name: Deploy to Web Folder run: | - cp -R site/* /data/notes/ + # Ensure the 'site' folder exists before copying + if [ -d "site" ]; then + cp -R site/* /data/notes/ + else + echo "Error: site directory not found!" + exit 1 + fi