name: Update Docs on: workflow_dispatch: push: branches: - main paths: - '_docs/**' jobs: ## Run replacements and cleanups on the docs prepare-docs: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - name: Upload spearhead.lua artifact uses: actions/upload-artifact@v3 with: name: spearhead-docs path: ./.docs/**/* retention-days: 1 build-image: runs-on: ubuntu-latest steps: # Download prepared pages from the previous job - name: Build Docker image for docs run: | docker build -t spearhead-docs ./_docs