Musings from the mountains himwant.org

Fix drafts

+1 -96
-2
.github/FUNDING.yml
··· 1 - # These are supported funding model platforms 2 - ko_fi: stelclementine
-93
.github/workflows/astro.yml
··· 1 - # Sample workflow for building and deploying an Astro site to GitHub Pages 2 - # 3 - # To get started with Astro see: https://docs.astro.build/en/getting-started/ 4 - # 5 - name: Deploy Astro site to Pages 6 - 7 - on: 8 - # Runs on pushes targeting the default branch 9 - push: 10 - branches: ['main'] 11 - 12 - # Allows you to run this workflow manually from the Actions tab 13 - workflow_dispatch: 14 - 15 - # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages 16 - permissions: 17 - contents: read 18 - pages: write 19 - id-token: write 20 - 21 - # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. 22 - # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. 23 - concurrency: 24 - group: 'pages' 25 - cancel-in-progress: false 26 - 27 - env: 28 - BUILD_PATH: '.' # default value when not using subfolders 29 - # BUILD_PATH: subfolder 30 - 31 - jobs: 32 - build: 33 - name: Build 34 - runs-on: ubuntu-latest 35 - steps: 36 - - name: Checkout 37 - uses: actions/checkout@v4 38 - - name: Detect package manager 39 - id: detect-package-manager 40 - run: | 41 - if [ -f "${{ github.workspace }}/yarn.lock" ]; then 42 - echo "manager=yarn" >> $GITHUB_OUTPUT 43 - echo "command=install" >> $GITHUB_OUTPUT 44 - echo "runner=yarn" >> $GITHUB_OUTPUT 45 - echo "lockfile=yarn.lock" >> $GITHUB_OUTPUT 46 - exit 0 47 - elif [ -f "${{ github.workspace }}/package.json" ]; then 48 - echo "manager=npm" >> $GITHUB_OUTPUT 49 - echo "command=ci" >> $GITHUB_OUTPUT 50 - echo "runner=npx --no-install" >> $GITHUB_OUTPUT 51 - echo "lockfile=package-lock.json" >> $GITHUB_OUTPUT 52 - exit 0 53 - else 54 - echo "Unable to determine package manager" 55 - exit 1 56 - fi 57 - - name: Setup Node 58 - uses: actions/setup-node@v4 59 - with: 60 - node-version: '20' 61 - cache: ${{ steps.detect-package-manager.outputs.manager }} 62 - cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }} 63 - - name: Setup Pages 64 - id: pages 65 - uses: actions/configure-pages@v5 66 - - name: Install dependencies 67 - run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} 68 - working-directory: ${{ env.BUILD_PATH }} 69 - - name: Build with Astro 70 - run: | 71 - ${{ steps.detect-package-manager.outputs.runner }} astro build \ 72 - --site "${{ steps.pages.outputs.origin }}" \ 73 - --base "${{ steps.pages.outputs.base_path }}" 74 - - name: Build Pagefind Index 75 - run: | 76 - ${{ steps.detect-package-manager.outputs.runner }} pagefind --site dist 77 - working-directory: ${{ env.BUILD_PATH }} 78 - - name: Upload artifact 79 - uses: actions/upload-pages-artifact@v3 80 - with: 81 - path: ${{ env.BUILD_PATH }}/dist 82 - 83 - deploy: 84 - environment: 85 - name: github-pages 86 - url: ${{ steps.deployment.outputs.page_url }} 87 - needs: build 88 - runs-on: ubuntu-latest 89 - name: Deploy 90 - steps: 91 - - name: Deploy to GitHub Pages 92 - id: deployment 93 - uses: actions/deploy-pages@v4
+1 -1
src/content/posts/pythons-generators-and-yield.md
··· 1 1 --- 2 2 title: "Python's Generators and Yield" 3 3 published: 2025-07-11 4 - draft: false 4 + draft: true 5 5 description: 'Learn how to use generators and the yield keyword in Python for efficient iteration.' 6 6 series: 'Python Basics' 7 7 tags: ['python']