This repository was archived by the owner on Jun 22, 2026. It is now read-only.
docs(blog): migrate articles from mdx to standard md (#111) #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2026 PythonWoods <dev@pythonwoods.dev> | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Zenzic Docs Release Docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| deployments: write | |
| concurrency: | |
| group: release-docs-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 | |
| with: | |
| enable-cache: true | |
| - name: Build Docs | |
| run: | | |
| uv run mkdocs build --strict | |
| - name: Set artifact name | |
| id: vars | |
| run: | | |
| if [ "${{ github.ref_type }}" = "tag" ]; then | |
| echo "name=docs-build-${{ github.ref_name }}" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "name=docs-build-run-${{ github.run_number }}" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Archive build output | |
| run: tar -czf "${{ steps.vars.outputs.name }}.tar.gz" site | |
| - name: Upload workflow artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: ${{ steps.vars.outputs.name }} | |
| path: ${{ steps.vars.outputs.name }}.tar.gz | |
| retention-days: 30 | |
| - name: Publish GitHub release (tags only) | |
| if: github.ref_type == 'tag' | |
| uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3 | |
| with: | |
| files: ${{ steps.vars.outputs.name }}.tar.gz | |
| generate_release_notes: true | |
| - name: Deploy to Cloudflare Pages | |
| uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4.0.0 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy site --project-name=zenzic-doc |